Method for df #1766
Labels
Enhancement
Ideas
Long-Term Enhancement Discussions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
See http://stackoverflow.com/questions/11941492/selecting-rows-from-a-pandas-dataframe-with-a-compound-hierarchical-index
let's say I want to filter a DataFrame such that level[k] only contains the values x, y or z.
A vectorized possibility is:
but I guess it would be nice to have some pandas method wrapping it or implementing it more efficiently.
The text was updated successfully, but these errors were encountered: