Skip to content

Commit

Permalink
Add xfailures for test_applymap for pandas 2.2 (#15034)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mroeschke authored Feb 20, 2024
1 parent 0dc9db8 commit c9dd325
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions python/cudf/cudf/tests/test_applymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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-<lambda>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-<lambda>3-data3",
reason="https://github.com/pandas-dev/pandas/pull/57388",
)
)
gdf = DataFrame(data)
pdf = gdf.to_pandas(nullable=True)

Expand Down

0 comments on commit c9dd325

Please sign in to comment.