-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-45164][PS] Remove deprecated Index
APIs
#42926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it seems that there are leftovers.
ERROR [0.054s]: test_is_type_compatible (pyspark.pandas.tests.indexes.test_base.IndexesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/__w/spark/spark/python/pyspark/pandas/tests/indexes/test_base.py", line 1593, in test_is_type_compatible
self.assert_eq(psidx.is_type_compatible(data_type), expected_result)
File "/__w/spark/spark/python/pyspark/pandas/indexes/base.py", line 2617, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(type(self).__name__, item))
AttributeError: 'Index' object has no attribute 'is_type_compatible'
Oh, I missed it. Just cleared the leftovers, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM (Pending CIs). Thank you for updates.
Merged to master. Thank you, @itholic and all. |
What changes were proposed in this pull request?
This PR proposes to remove deprecated
Index
APIs from Pandas API on Spark.Why are the changes needed?
To follow the behavior of the latest Pandas.
See pandas-dev/pandas#37877 for
Index.asi8
See pandas-dev/pandas#42113 for
Index.is_type_compatible
Does this PR introduce any user-facing change?
Index.asi8
,Index.is_type_compatible
is removed.Index.astype
andIndex.isin
can be used instead respectively.How was this patch tested?
The existing CI should pass.
Was this patch authored or co-authored using generative AI tooling?
No.