Select rows in pandas MultiIndex DataFrame
问题 What are the most common pandas ways to select/filter rows of a dataframe whose index is a MultiIndex? Slicing based on a single value/label Slicing based on multiple labels from one or more levels Filtering on boolean conditions and expressions Which methods are applicable in what circumstances Assumptions for simplicity: input dataframe does not have duplicate index keys input dataframe below only has two levels. (Most solutions shown here generalize to N levels) Example input: mux = pd