Rename Column
Rename Column
Section titled “Rename Column”Type: rename-column · Package: DataTable Activities v1.0.0 · Output: DataTable
Changes the column name of a DataTable and returns a new table. Useful for normalizing headers before joining tables with Join, or for giving readable names to columns that come from a source with unclear titles.
How it works
Section titled “How it works”Renames column column to newName, preserving its data. Returns a new table; the original does not change.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
table | expression | The DataTable to modify. |
column | text | Current column name. |
newName | text | Nombre nuevo. |
Optional parameters
Section titled “Optional parameters”Ninguno.
Output
Section titled “Output”Returns a DataTable with the column renamed.
Example
Section titled “Example”Rename Column table = = datos column = "col1" newName = "Cliente" → output: legibleRelated activities
Section titled “Related activities”- Drop Column — delete columns.
- Join DataTable — join tables by a common column.