I have a multi-index data frame with columns \'A\' and \'B\'.
Is there is a way to select rows by filtering on one column of the multi-index without resetting the
Another option is:
filter1 = df.index.get_level_values('A') == 1 filter2 = df.index.get_level_values('B') == 4 df.iloc[filter1 & filter2] Out[11]: 0 A B 1 4 1