Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
API: add 'level' kwarg for Index.isin method #7890
Comments
jreback
added API Design Enhancement MultiIndex Indexing
labels
Jul 31, 2014
jreback
added this to the
0.15.0
milestone
Jul 31, 2014
|
ok, I think if we put this in we can then revert #7867 |
|
@cpcloud @jorisvandenbossche thoughts? |
|
|
immerrr
referenced
this issue
Jul 31, 2014
Merged
API: add 'level' kwarg to 'Index.isin' method #7892
|
+1 |
jreback
closed this
in #7892
Aug 4, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
immerrr commentedJul 31, 2014
xref #7886
It would be nice to be able to write:
instead of
The former variant is not only shorter but is also potentially more performant: one only has to look up levels in given container and then operate on labels only avoiding instantiation of sub-index completely.
Default value should be
None, plainIndexobjects should only acceptNone,0, and,Index.namefor the sake of consistency (the last one is especially arguable).