pandas 0.9.1 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)