Transform#
- class lumen.transforms.base.Transform(*, controls, name)#
Transform components implement transforms of DataFrame objects.
Parameters#
controls
type: list[Any]
default: []
Parameters that should be exposed as widgets in the UI.
name
type: str
default: 'Transform'
String identifier for this object.
Methods#
- Transform.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
- Transform.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