pandera.engines.pandas_engine.PythonTypedDictΒΆ
- class pandera.engines.pandas_engine.PythonTypedDict(special_type=None)[source]ΒΆ
A datatype to support python generics.
Attributes
auto_coerceWhether to force coerce to be True in all cases
coercion_modelcontinuousWhether the number data type is continuous.
generic_typespecial_typetypeNative pandas dtype boxed by the data type.
Methods
- check(pandera_dtype, data_container=None)[source]ΒΆ
Check that data container has the expected type.
- coerce(data_container)[source]ΒΆ
Coerce data container to the specified data type.
- Return type:
Union[Series,DataFrame]