Astype type: as_type#
- class lumen.transforms.base.Astype(*, dtypes, controls, name)#
Astype transforms the type of one or more columns.
Parameters#
dtypes
type: dict
default: None
Mapping from column name to new type.
Methods#
- Astype.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
- Astype.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