Skip to content
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

Merged
merged 10 commits into from Nov 2, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Oct 23, 2020

xref #30228

@jreback jreback added the Deprecate Functionality to remove in pandas label Oct 24, 2020
Copy link
Contributor

@jreback jreback left a 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

@jbrockmendel
Copy link
Member Author

can u link to the deprecation removal issue

done

also pls test the inplace ops produce a warning

we dont support inplace ops for these

@jreback jreback added this to the 1.2 milestone Oct 26, 2020
@@ -725,7 +725,7 @@ def __array_ufunc__(
# it to handle *args.
index = alignable[0].index
for s in alignable[1:]:
index |= s.index
Copy link
Contributor

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.

Copy link
Contributor

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

@jreback
Copy link
Contributor

jreback commented Oct 31, 2020

lgtm merge on greenish

@jreback jreback merged commit 821f90c into pandas-dev:master Nov 2, 2020
@jreback
Copy link
Contributor

jreback commented Nov 2, 2020

thanks @jbrockmendel

@jreback
Copy link
Contributor

jreback commented Nov 2, 2020

kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
@jbrockmendel
Copy link
Member Author

hmm this may have broken some tests

just opened #37587 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: |&^ as set operations for Index
2 participants