Columns type: columns#
- class lumen.transforms.base.Columns(*, columns, controls, name)#
Columns selects a subset of columns.
df[<columns>]
Parameters#
columns
type: Any
default: None
Possible values: ``
The subset of columns to select.
Methods#
- Columns.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
- Columns.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