-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DEPR: Index.__and__, __or__, __xor__ behaving as set ops #37374
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.
can u link to the deprecation removal issue
also pls test the inplace ops produce a warning
eg
|= and so on
done
we dont support inplace ops for these |
@@ -725,7 +725,7 @@ def __array_ufunc__( | |||
# it to handle *args. | |||
index = alignable[0].index | |||
for s in alignable[1:]: | |||
index |= s.index |
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.
we certainly are using this (or at least were), so need to make sure these inplace ops are deprecated as well.
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.
can you add some tests for the inplace to make sure they are warning as well
lgtm merge on greenish |
…o depr-index-defer
thanks @jbrockmendel |
hmm this may have broken some tests: https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=46712&view=logs&j=eab14f69-13b6-5db7-daeb-7b778629410b&t=ce687173-08c6-5301-838d-71b2dda24510 this is a just rebased pr |
just opened #37587 for this |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
xref #30228