Data.rename¶
- Data.rename(old_col, new_col)¶
Rename columns without changing the underlying data.
- Parameters:
datafile (Data) – Data object to work with if not being used as a bound method.
old_col (string, int, re) – Old column index or name (using standard rules)
new_col (string) – New name of column
- Returns:
datafile – A copy of the modified
DataFileinstance