pandera.dtypes.Category#
- class pandera.dtypes.Category(categories=None, ordered=False)[source]#
Semantic representation of a categorical data type.
Attributes
categories
continuous
Whether the number data type is continuous.
ordered
Methods
Check that pandera
DataType
are equivalent.Coerce data container to the data type.
Coerce an value to a particular type.
Coerce data container to the data type, raises a
ParserError
if the coercion fails :raises:ParserError
: if coercion failsCoerce data container to the data type.