transform_decode
            TransformDecodeAction
¶
    
              Bases: PipelineAction
Decodes values of a specified column in the DataFrame based on the given format.
Example
Source code in src/cloe_nessy/pipeline/actions/transform_decode.py
                | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |  | 
            _decode_base64(df, column, base64_schema)
¶
    Decode base64 column.
Source code in src/cloe_nessy/pipeline/actions/transform_decode.py
              
            
            _decode_json(df, column, json_schema)
¶
    Decode json column.
Source code in src/cloe_nessy/pipeline/actions/transform_decode.py
              
            run(context, *, column=None, input_format=None, schema=None, **_)
¶
    Decodes values of a specified column in the DataFrame based on the given format.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| context | PipelineContext | The context in which this Action is executed. | required | 
| column | str | None | The name of the column that should be decoded. | None | 
| input_format | str | None | The format from which the column should be decoded. Currently supported formats are 'base64' and 'json'. | None | 
| schema | str | None | For JSON input, the schema of the JSON object. If empty, the schema is inferred from the first row of the DataFrame. For base64 input, the data type to which the column is cast. | None | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If no column is specified. | 
| ValueError | If no input_format is specified. | 
| ValueError | If the data from context is None. | 
| ValueError | If an invalid input_format is provided. | 
Returns:
| Type | Description | 
|---|---|
| PipelineContext | The context after the execution of this Action, containing the DataFrame with the decoded column(s). |