Skip to content

Commit c9dd325

Browse files
authored
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: #15034
1 parent 0dc9db8 commit c9dd325

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

python/cudf/cudf/tests/test_applymap.py

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from cudf import NA, DataFrame
6-
from cudf.core._compat import PANDAS_GE_210
6+
from cudf.core._compat import PANDAS_GE_210, PANDAS_GE_220
77
from cudf.testing import _utils as utils
88

99

@@ -26,7 +26,21 @@
2626
],
2727
)
2828
@pytest.mark.parametrize("na_action", [None, "ignore"])
29-
def test_applymap_dataframe(data, func, na_action):
29+
def test_applymap_dataframe(data, func, na_action, request):
30+
request.applymarker(
31+
pytest.mark.xfail(
32+
PANDAS_GE_220
33+
and request.node.callspec.id == "None-<lambda>2-data3",
34+
reason="https://github.com/pandas-dev/pandas/issues/57390",
35+
)
36+
)
37+
request.applymarker(
38+
pytest.mark.xfail(
39+
PANDAS_GE_220
40+
and request.node.callspec.id == "ignore-<lambda>3-data3",
41+
reason="https://github.com/pandas-dev/pandas/pull/57388",
42+
)
43+
)
3044
gdf = DataFrame(data)
3145
pdf = gdf.to_pandas(nullable=True)
3246

0 commit comments

Comments
 (0)