Pandas groupby flatten multiindex. .

Pandas groupby flatten multiindex. .