C3 AI Documentation Home

Columns - Rename

Rename columns in Visual Notebooks.

Configuration

FieldDescription
Name (default=Columns - Rename)A user-specified node name displayed in the workspace
Rename Columns (Required)Column naming details

Select a column to rename from the auto-populated dropdown menu. Enter the new name for the selected column in the "To" field. Column names can only contain letters, numbers, and underscores. Spaces and other special characters are not permitted. Rename multiple columns with the "Add" button. |

Node Inputs/Outputs

InputA Visual Notebooks dataframe
OutputA dataframe with renamed columns.

Example dataframe output

Figure 1: Example dataframe output

Examples

  • Connect a "Columns - Rename" node to an existing node.
  • Select a column to rename from the auto-populated dropdown menu.
  • Enter the new column name in the "To" field.
    • In the example below, the column "DOB" is renamed to "Date_of_birth".
  • Select "Run" to create a dataframe with the renamed column.

Example dataframe with a renamed column

Figure 2: Example dataframe with a renamed column

Was this page helpful?