errors.ColumnSchemaError

A frame’s columns or dtypes do not match the schema.

Usage

Source

errors.ColumnSchemaError(
    schema_name,
    problems,
)

This is a bug in the pipeline, not bad data, so the run fails before Schema.filter runs, and the asset writes nothing.

Methods

Name Description
__init__() Name each mismatched column with its expected and actual dtype.

__init__()

Name each mismatched column with its expected and actual dtype.

Usage

Source

__init__(schema_name, problems)
Parameters
problems: Sequence[Mapping[str, str]]
One mapping of column, expected and actual per mismatched column, as _column_schema_problems returns.