Pandas multiindex к одному индексу
df.columns = df.columns.get_level_values(0)
Wide-eyed Worm
df.columns = df.columns.get_level_values(0)
df.index = df.index.get_level_values('index name')
""" Check the link in the Source.
It works with MultiIndex after groupby and after pivot """