Data.rename¶
- Data.rename(old_col, new_col)¶
Rename columns without changing the underlying data.
- Parameters:
old_col (string, int, re) – Old column index or name (using standard rules)
new_col (string) – New name of column
- Returns:
self – A copy of the modified
DataFile
instance