pandera.engines.pandas_engine.Period¶
- class pandera.engines.pandas_engine.Period(freq)[source]¶
Representation of pandas
pd.Period.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.
freqMethods
- 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.
- classmethod from_parametrized_dtype(pd_dtype)[source]¶
Convert a
pandas.PeriodDtypeto a Panderapandera.engines.pandas_engine.Period.