pandera.engines.pandas_engine.Date¶
- class pandera.engines.pandas_engine.Date(to_datetime_kwargs=None)[source]¶
Semantic representation of a date data type.
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.
to_datetime_kwargsAny additional kwargs passed to
pandas.to_datetime()for coercion.Methods
- check(pandera_dtype, data_container=None)[source]¶
Check that pandera
DataTypeare equivalent.- Parameters:
- Return type:
- Returns:
boolean scalar or iterable of boolean scalars, indicating which elements passed the check.
- coerce(data_container)[source]¶
Pure coerce without catching exceptions.
- Return type:
Union[Series,DataFrame]