pandas 0.8.0 documentation

pandas.DataFrame.swaplevel

DataFrame.swaplevel(i, j, axis=0)

Swap levels i and j in a MultiIndex on a particular axis

Returns :swapped : type of caller (new object)