modin.pandas.DataFrame.set_axis¶
- DataFrame.set_axis(labels: IndexLabel, *, axis: Axis = 0, copy: bool | NoDefault = _NoDefault.no_default)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/dataframe_overrides.py#L1858-L1874)¶
Assign desired index to given axis.
- Parameters:
labels (list-like, Index, MultiIndex) – The values for the new index.
axis ({index (0), rows(0), columns (1)}) – Axis for the function to be applied on.
copy (bool, default True) – To maintain compatibility with pandas, does nothing.
- Return type:
Examples