bigframes.geopandas.GeoSeries.swaplevel#

GeoSeries.swaplevel(i: int = -2, j: int = -1)#

Swap levels i and j in a MultiIndex.

Default is to swap the two innermost levels of the index.

Parameters:
  • i (int or str) – Levels of the indices to be swapped. Can pass level name as string.

  • j (int or str) – Levels of the indices to be swapped. Can pass level name as string.

Returns:

Series with levels swapped in MultiIndex

Return type:

bigframes.pandas.Series