From c9dd3256ee5582fc5e8d742a3d95c7f44b000341 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 20 Feb 2024 04:08:56 -1000 Subject: [PATCH] Add xfailures for test_applymap for pandas 2.2 (#15034) There were regressions in the `map` methods on the pandas side that is causing some of these applymap tests to fail on pandas 2.2 Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: https://github.com/rapidsai/cudf/pull/15034 --- python/cudf/cudf/tests/test_applymap.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/tests/test_applymap.py b/python/cudf/cudf/tests/test_applymap.py index 38a34c206d7..adbbbbb1ae4 100644 --- a/python/cudf/cudf/tests/test_applymap.py +++ b/python/cudf/cudf/tests/test_applymap.py @@ -3,7 +3,7 @@ import pytest from cudf import NA, DataFrame -from cudf.core._compat import PANDAS_GE_210 +from cudf.core._compat import PANDAS_GE_210, PANDAS_GE_220 from cudf.testing import _utils as utils @@ -26,7 +26,21 @@ ], ) @pytest.mark.parametrize("na_action", [None, "ignore"]) -def test_applymap_dataframe(data, func, na_action): +def test_applymap_dataframe(data, func, na_action, request): + request.applymarker( + pytest.mark.xfail( + PANDAS_GE_220 + and request.node.callspec.id == "None-2-data3", + reason="https://github.com/pandas-dev/pandas/issues/57390", + ) + ) + request.applymarker( + pytest.mark.xfail( + PANDAS_GE_220 + and request.node.callspec.id == "ignore-3-data3", + reason="https://github.com/pandas-dev/pandas/pull/57388", + ) + ) gdf = DataFrame(data) pdf = gdf.to_pandas(nullable=True)