pandera.engines.pandas_engine.Category#
- class pandera.engines.pandas_engine.Category(categories=None, ordered=False)[source]#
Semantic representation of a
pandas.CategoricalDtype.Attributes
auto_coerceWhether to force coerce to be True in all cases
categoriescontinuousWhether the number data type is continuous.
orderedtypeNative pandas dtype boxed by the data type.
Methods
Check that pandera
DataTypeare equivalent.Pure coerce without catching exceptions.
Coerce an value to a particular type.
Convert a categorical to a Pandera
pandera.dtypes.pandas_engine.Category.Coerce data container to the data type, raises a
ParserErrorif the coercion fails :raises:ParserError: if coercion failsCoerce data container to the data type.