RenameColumn / Manipulation Layer

Rename columns while preserving their data and order. Similar to pandas' rename() or R's rename() from dplyr.

Key features:

  • Multiple column renaming in one operation
  • Name collision prevention
  • Original data preservation

Common applications:

  • Data standardization
  • Column name cleanup
  • Schema alignment
  • Documentation improvement
  • Integration preparation

Example: Rename cryptic column names ('col_a', 'col_b') to meaningful ones ('customer_id', 'purchase_date').

Table
0
0
Table

Mappings

[, ...]

List of column name changes to apply. Multiple mappings enable:

  • Batch renaming operations
  • Coordinated name updates
  • Schema-wide standardization Example: [('cust_id' → 'customer_id'), ('trans_dt' → 'transaction_date')]

SelectOld

column

Current column name to be changed. Common scenarios:

  • Standardizing inconsistent names
  • Replacing default system names
  • Correcting misspellings
  • Updating deprecated names

New name for the column. Requirements:

  • Must be unique in the dataframe/table
  • Should follow naming conventions
  • Should be meaningful and clear
  • Cannot conflict with existing columns