pandas.Index.rename — pandas 1.3.5 documentation
pandas.pydata.org › api › pandaspandas.Index.rename. ¶. 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. Name (s) to set. Modifies the object directly, instead of creating a new Index or MultiIndex. The same type as the caller or None if inplace=True.