class paguro.Validation

Validation.

Constructors

Validation(*validators, ...)

Initialize self. See help(type(self)) for accurate signature.

Methods

with_name(name: str) Self

Assigns name.

with_info(name: str | None = None, **mapping: Any) Self

Return a copy with Info(name) updated by mapping.

serialize() str
classmethod deserialize(source: str) Validation
validate(data, ...) FrameLike | ValidationError | None
gather_predicates(target: pl.Schema | None = None) list[pl.Expr]

Gather all the set rules as predicate expressions.

Properties

property name : str | None

Returns the assigned name.

property info : InfoCollection | None

User defined information.

Export

to_schema(*, check_dtypes: bool = True, ...) pl.Schema

Extracts a schema from the ValidColumns.