WoodworkTableAccessor.
rename
Renames columns in a DataFrame, maintaining Woodwork typing information.
columns (dict[str -> str]) – A dictionary mapping current column names to new column names.
inplace (bool) – If False, return a copy. Otherwise, do operation inplace and return None.
DataFrame with the specified columns renamed, maintaining Woodwork typing information or None if inplace=True. Only possible for pandas dataframes.
DataFrame or None