transform_rename_columns
            TransformRenameColumnsAction
¶
    
              Bases: PipelineAction
Renames the specified columns in the DataFrame.
This method updates the DataFrame in the provided context by renaming columns according
to the mapping defined in the columns dictionary, where each key represents an old column
name and its corresponding value represents the new column name.
Example
Source code in src/cloe_nessy/pipeline/actions/transform_rename_columns.py
                
            run(context, *, columns=None, **_)
¶
    Renames the specified columns in the DataFrame.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| context | PipelineContext | Context in which this Action is executed. | required | 
| columns | dict[str, str] | None | A dictionary where the key is the old column name and the value is the new column name. | None | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If no columns are provided. | 
| ValueError | If the data from context is None. | 
Returns:
| Type | Description | 
|---|---|
| PipelineContext | Context after the execution of this Action. |