We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e07f3 commit f26c116Copy full SHA for f26c116
python/pyspark/pandas/tests/indexes/test_category.py
@@ -82,7 +82,11 @@ def test_categories_setter(self):
82
83
pidx.categories = ["z", "y", "x"]
84
psidx.categories = ["z", "y", "x"]
85
- if LooseVersion(pd.__version__) >= LooseVersion("1.1"):
+ # Pandas deprecated all the in-place category-setting behaviors, dtypes also not be
86
+ # refreshed in categories.setter since Pandas 1.4+, we should also consider to clean up
87
+ # this test when in-place category-setting removed:
88
+ # https://github.com/pandas-dev/pandas/issues/46820
89
+ if LooseVersion("1.4") >= LooseVersion(pd.__version__) >= LooseVersion("1.1"):
90
self.assert_eq(pidx, psidx)
91
self.assert_eq(pdf, psdf)
92
else:
0 commit comments