pandas.DataFrame.rename — pandas 0.24.2 documentation (original) (raw)
mapper, index, columns : dict-like or function, optional
dict-like or functions transformations to apply to that axis’ values. Use either mapper
and axis
to specify the axis to target with mapper
, or index
andcolumns
.
axis : int or str, optional
Axis to target with mapper
. Can be either the axis name (‘index’, ‘columns’) or number (0, 1). The default is ‘index’.
copy : boolean, default True
Also copy underlying data
inplace : boolean, default False
Whether to return a new DataFrame. If True then value of copy is ignored.
level : int or level name, default None
In case of a MultiIndex, only rename labels in the specified level.