pd.DataFrame.rename
¶
pandas.DataFrame.rename(mapper=None, index=None, columns=None, axis=None, copy=True, inplace=False, level=None, errors='ignore')
Supported Arguments¶
mapper
: must be constant dictionary.- Can only be used alongside axis=1
columns
: must be constant dictionaryaxis
: Integer- Can only be used alongside mapper argument
copy
: booleaninplace
: must be constant boolean