How to remove levels from a multi-indexed dataframe?

df.reset_index(level=2, drop=True)
Out[29]: 
     A
1 1  8
  3  9

Leave a Comment