BUG: inconsisten multi-level indexing when levels are dropped · Issue #10521 · pandas-dev/pandas (original) (raw)

DF.loc['A', :, 1] returns a DataFrame with the full MultiIndex if the second level has more than one entry, and a truncated index if the second level has only one entry (same as, e.g., DF.loc['A',0,1]). Is this the intended behavior?