|
mapper, index, columns : dict-like or function, optional
dict-like or functions transformations to apply to that axis' values. Use either mapperand axis to specify the axis to target with mapper, or index and columns.
dict-like 或函数转换以应用于该轴的值。二者必选其一mapper,并使用axis指定轴与目标mapper,或index和 columns。
主要用于指定需要修改的地方:index or columns
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'.
轴与目标mapper。可以是轴名称('index','columns')或数字(0,1)。默认为'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.
是否返回新的DataFrame。如果为True,则忽略复制值。
level : int or level name, default None
In case of a MultiIndex, only rename labels in the specified level.
如果是MultiIndex,只重命名指定级别的标签。
|