rename_columns
The rename_columns method creates a new table with specified columns renamed.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| cols | Union[str, Sequence[str]] | Columns that will be renamed in the new table.
|
Returns
A new table that renames the specified columns.
Examples
The following example renames columns A and C: