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
You can use DataFrame.loc:
>>> df.loc[1]
>>> print(df) result A B C 1 1 1 6 2 9 2 1 8 2 11 2 1 1 7 2 10 2 1 9 2 12 >>> print(df.loc[1]) result B C 1 1 6 2 9 2 1 8 2 11 >>> print(df.loc[2, 1]) result C 1 7 2 10