class paguro.validation.ValidColumn

Settings

with_name(name: str | Selector | None) Self

Renames the column validator.

Validation

validate(data, ...) FrameLike | ValidationError | None

Validate the target data using the validator.

Methods

gather_predicates(target: pl.Schema | None = None) list[pl.Expr]

Gather all the set rules as predicate expressions.

Information

with_info(*, title: str | None = None, ...) Self

Add info to the validator.

Export

serialize(**kwargs: Any) str

Serialize the object to JSON string.

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