-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Dataframe isin2 #4258
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
ENH: Dataframe isin2 #4258
Conversation
docs. to be rebased ENH: Add isin method to DataFrame Basic tests. Added method and fixed tests. ENH: Add ordered argument to df.isin() Expects a sequence of arrays. Updated release notes for df.isin() CLN: cleanup going to remove ordered argument. Using a dict for ordered matching. Docs BUG: fixed subselection length check issues. Updated release notes for df.isin() remove merge conflict note
Looks good! The |
Yes, we grab out the columns (as a DataFrame!) by integer location and when they're concat-ed back they stay in order :) , slightly changed notation in second commit (to be less ambiguous / ix like):
|
yep... @hayd method is also correct a selector like |
Cool. Thanks for all the hand-holding through this. |
@jreback 0.13 ? |
if u want to shove in 0.12 ok |
|
||
.. ipython:: python | ||
|
||
values = values = {0: ['a', 'b']} |
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.
the double assignment isn't necessary here
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.
whoops!
i really like this, but i think we should maybe just focus on getting the rest of the bugs fixed for 0.12 and add this very soon after 0.12 is released. |
here's the issue once you release it the API shouldn't change you could mark it experimental if u want |
I think the api is pretty good (and will be stable)... but I'm biased! |
merged into 0.13 :) but oops should have moved the release note... |
(pushed release note fix for that direct to master.) |
fixes #4211, an alternative (on top of) #4237
DataFrame isin method:
cc @TomAugspurger