pandera.engines.polars_engine.DateTime¶
- class pandera.engines.polars_engine.DateTime(time_zone_agnostic=False, time_zone=None, time_unit=None)[source]¶
Polars datetime data type.
Attributes
auto_coerceWhether to force coerce to be True in all cases
continuousWhether the number data type is continuous.
time_zone_agnosticMethods
- check(pandera_dtype, data_container=None)[source]¶
Check that pandera
DataTypeare equivalent.- Parameters:
pandera_dtype (
DataType) – ExpectedDataType.data_container (
Union[LazyFrame,PolarsData,None]) – Data container, used by data types that require the actual data for validation.
- Return type:
- Returns:
boolean scalar or iterable of boolean scalars, indicating which elements passed the check.
- classmethod from_parametrized_dtype(polars_dtype)[source]¶
Convert a
polars.Decimalto a Panderapandera.engines.polars_engine.Decimal.