boilercv_pipeline.models.columns#

Data columns model.

Module Contents#

Classes#

Cols

Columns.

Functions#

get_cols

Get columns.

Data#

D

API#

boilercv_pipeline.models.columns.D#

‘DataStage(…)’

class boilercv_pipeline.models.columns.Cols(
/,
**data: typing.Any,
)#

Bases: pydantic.BaseModel

Columns.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

get_indices(
*stages: str,
) list[boilercv_pipeline.models.column.Col]#

Get all index columns, optionally selecting by stage.

property index: boilercv_pipeline.models.column.Col#

Singular index column in a set of columns with one index.

property sources: list[boilercv_pipeline.models.column.LinkedCol]#

All source columns.

property dests: list[boilercv_pipeline.models.column.Col]#

All destination columns.

validate_unique() Self#

Validate columns are unique.

boilercv_pipeline.models.columns.get_cols(
cols_model: boilercv_pipeline.models.columns.Cols,
meta: str,
) list[Any]#

Get columns.