bigframes.pandas.DataFrame.droplevel#
- DataFrame.droplevel(level: Hashable | Sequence[Hashable], axis: int | str = 0)[source]#
Return DataFrame with requested index / column level(s) removed.
- Parameters:
level (int, str, or list-like) – If a string is given, must be the name of a level If list-like, elements must be names or positional indexes of levels.
axis ({0 or 'index', 1 or 'columns'}, default 0) –
Axis along which the level(s) is removed:
0 or ‘index’: remove level(s) in column.
1 or ‘columns’: remove level(s) in row.
- Returns:
DataFrame with requested index / column level(s) removed.
- Return type:
- Raises:
ValueError – If columns are not multi-index