transform: Reproducible transformations made simple.
Code author: Peter Kraus
The function dgpost.utils.transform.transform()
processes the below specification
in order to do data transformation on an extracted (or supplied) pd.DataFrame
.
- pydantic model dgbowl_schemas.dgpost.recipe_1_1.transform.Transform
Show JSON schema
{ "title": "Transform", "type": "object", "properties": { "table": { "title": "Table", "type": "string" }, "with": { "title": "With", "type": "string" }, "using": { "title": "Using", "type": "array", "items": { "type": "object" } } }, "required": [ "table", "with", "using" ], "additionalProperties": false }
- field table: str [Required]
- field with_: str [Required] (alias 'with')
- field using: Sequence[Dict[str, Any]] [Required]
Warning
The arguments passed to the transformation function in the transform.using
Sequence
have to be dict
with str
-type keys. The
values will be coerced to appropriate types using the transform function
decorator: dgpost.transform.helpers.load_data()
.
- dgpost.utils.transform.transform(table, withstr, using)
- Return type
None