transform
The transform method applies a function to all constituents of a partitioned table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| func | Callable[[Table], Table] | A function that takes a table as input and returns a table. The table operations applied within the function must be done from within an execution context. The function must also be stateless, safe for concurrent use, and able to return a valid result for an empty input table. |
| dependencies optional | Optional[Sequence[Union[Table, PartitionedTable]]] | Additional dependencies that must be satisfied before applying |
Returns
A PartitionedTable.
Examples
This first example applies a transformation to add a new column to each constituent of a partitioned table.
This second example applies aggregations to each constituent of a partitioned table via transform.