pandas.DataFrame.rename — pandas 1.3.5 documentation
pandas.pydata.org › pandaspandas.DataFrame.rename ¶ DataFrame.rename(mapper=None, index=None, columns=None, axis=None, copy=True, inplace=False, level=None, errors='ignore') [source] ¶ Alter axes labels. Function / dict values must be unique (1-to-1). Labels not contained in a dict / Series will be left as-is. Extra labels listed don’t throw an error.