woodwork.datatable.DataTable.rename

DataTable.rename(columns)[source]

Renames columns in a DataTable

Parameters

columns (dict[str -> str]) – A dictionary mapping columns whose names we’d like to change to the name to which we’d like to change them.

Returns

DataTable with the specified columns renamed.

Return type

woodwork.DataTable

Note

Index and time index columns cannot be renamed.