bigframes.pandas.DataFrame.swaplevel#
- DataFrame.swaplevel(i:int=-2,j:int=-1,axis:int|str=0)[source]#
Swap levels i and j in a
MultiIndex.Default is to swap the two innermost levels of the index.
- Parameters:
- Returns:
DataFrame with levels swapped in MultiIndex.
- Return type:
- Raises:
ValueError – If columns are not multi-index.
On this page