modin.pandas.Index.rename¶
- Index.rename() None [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/plugin/extensions/index.py#L1449-L1474)¶
Alter Index or MultiIndex name.
Able to set new names without level. Defaults to returning new index. Length of names must match number of levels in MultiIndex.
- Parameters:
name (label or list of labels) – Name(s) to set.
inplace (bool, default False) – Modifies the object directly, instead of creating a new Index or MultiIndex.
- Returns:
The same type as the caller or None if
inplace=True
.- Return type:
Index or None
See also
Index.set_names
Able to set new names partially and by level.