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.
- coerce(data_container)[source]ΒΆ
Pure coerce without catching exceptions.
- Return type:
Union[Series,DataFrame]
- classmethod from_parametrized_dtype(pd_dtype)[source]ΒΆ
Convert a
pandas.PeriodDtypeto a Panderapandera.engines.pandas_engine.Period.