pandera.engines.pandas_engine.Period¶
- class pandera.engines.pandas_engine.Period(freq)[source]¶
Representation of pandas
pd.Period
.Attributes
auto_coerce
Whether to force coerce to be True in all cases
continuous
Whether the number data type is continuous.
type
Native pandas dtype boxed by the data type.
freq
Methods
- check(pandera_dtype, data_container=None)[source]¶
Check that pandera
DataType
are equivalent.- Parameters:
- Return type:
- Returns:
boolean scalar or iterable of boolean scalars, indicating which elements passed the check.
- classmethod from_parametrized_dtype(pd_dtype)[source]¶
Convert a
pandas.PeriodDtype
to a Panderapandera.engines.pandas_engine.Period
.