API: add 'level' kwarg for Index.isin method #7890
Labels
API Design
Enhancement
Indexing
Related to indexing on series/frames, not to indexes themselves
MultiIndex
Milestone
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
, plainIndex
objects should only acceptNone
,0
, and,Index.name
for the sake of consistency (the last one is especially arguable).The text was updated successfully, but these errors were encountered: