pandera.engines.polars_engine.Category

class pandera.engines.polars_engine.Category(categories=None)[source]

Pandera categorical data type for polars.

Attributes

auto_coerce

Whether to force coerce to be True in all cases

categories

continuous

Whether the number data type is continuous.

ordered

Methods

__init__

check

Check that pandera DataType are equivalent.

coerce

Coerce data container to the data type.

coerce_value

Coerce an value to a particular type.

try_coerce

Coerce data container to the data type,

__call__

Coerce data container to the data type.