From e36718b146bac35069e388e4b4748291c4ff6049 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Fri, 9 Feb 2024 09:01:03 -1000 Subject: [PATCH] Fix is_string_dtype test for pandas 2.2 (#15012) Fixed in pandas 2.2: https://github.com/pandas-dev/pandas/issues/54661 Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: https://github.com/rapidsai/cudf/pull/15012 --- python/cudf/cudf/tests/test_api_types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/cudf/cudf/tests/test_api_types.py b/python/cudf/cudf/tests/test_api_types.py index 7780f9853a2..6cb267ae0e8 100644 --- a/python/cudf/cudf/tests/test_api_types.py +++ b/python/cudf/cudf/tests/test_api_types.py @@ -7,7 +7,7 @@ import cudf from cudf.api import types -from cudf.core._compat import PANDAS_GE_200, PANDAS_GE_210, PANDAS_GE_214 +from cudf.core._compat import PANDAS_GE_210, PANDAS_GE_214, PANDAS_GE_220 from cudf.testing._utils import expect_warning_if @@ -499,8 +499,8 @@ def test_is_integer(obj, expect): (pd.Series(dtype="int"), False), (pd.Series(dtype="float"), False), (pd.Series(dtype="complex"), False), - (pd.Series(dtype="str"), not PANDAS_GE_200), - (pd.Series(dtype="unicode"), not PANDAS_GE_200), + (pd.Series(dtype="str"), PANDAS_GE_220), + (pd.Series(dtype="unicode"), PANDAS_GE_220), (pd.Series(dtype="datetime64[s]"), False), (pd.Series(dtype="timedelta64[s]"), False), (pd.Series(dtype="category"), False),