pandera.engines.pandas_engine.PydanticModel#
- class pandera.engines.pandas_engine.PydanticModel(model)[source]#
A pydantic model datatype applying to rows in a dataframe.
Attributes
auto_coerceWhether to force coerce to be True in all cases
continuousWhether the number data type is continuous.
typeNative pandas dtype boxed by the data type.
Methods
Check that pandera
DataTypeare equivalent.Coerce pandas dataframe with pydantic record model.
Coerce an value to a particular type.
Coerce data container to the data type, raises a
ParserErrorif the coercion fails :raises:ParserError: if coercion failsCoerce data container to the data type.