transform_replace_values
            TransformReplaceValuesAction
¶
    
              Bases: PipelineAction
Replaces specified values in the given DataFrame.
This method iterates over the specified replace dictionary, where each key is a column name
and each value is another dictionary containing old values as keys and new values as the corresponding
values. The method updates the DataFrame by replacing occurrences of the old values with the new ones
in the specified columns.
Example
Source code in src/cloe_nessy/pipeline/actions/transform_replace_values.py
                
            run(context, *, replace=None, **_)
¶
    Replaces specified values in the given DataFrame.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| context | PipelineContext | Context in which this Action is executed. | required | 
| replace | dict[str, dict[str, str]] | None | A dictionary where each key is the column name and the corresponding value is another dictionary mapping old values to new values. | None | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If no replace values are provided. | 
| ValueError | If the data from context is None. | 
Returns:
| Type | Description | 
|---|---|
| PipelineContext | Context after the execution of this Action. |