ueshin commented on a change in pull request #33844:
URL: https://github.com/apache/spark/pull/33844#discussion_r706455822
##########
File path: python/pyspark/pandas/indexes/base.py
##########
@@ -2601,6 +2599,12 @@ def __iter__(self) -> Iterator:
return MissingPandasLikeIndex.__iter__(self)
def __xor__(self, other: "Index") -> "Index":
+ warnings.warn(
+ "Index.__xor__ operating as a set operation is deprecated, "
+ "in the future this will be a logical operation matching
Series.__xor__. "
Review comment:
Btw, pandas `Index` has `__and__` and `__or__` mapping to `intersection`
and `union` respectively.
They are already deprecated, but show the similar messages.
Although they will be removed soon, they might be good to have to show the
messages which might be helpful to users.
WDYT? cc @HyukjinKwon
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]