pandas 0.7.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)