Compute  type: compute#

class lumen.transforms.base.Compute(*, controls, name)#

Compute turns a dask.dataframe.DataFrame into a pandas.DataFrame.


Methods#

Compute.apply(table: DataFrame) DataFrame#

Given a table transform it in some way and return it.

Parameters:

table (DataFrame) – The queried table as a DataFrame.

Returns:

A DataFrame containing the transformed data.

Return type:

DataFrame

Compute.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any]#

Exports the full specification to reconstruct this component.

Return type:

Resolved and instantiated Component object