pandera.engines.polars_engine.Array¶
- class pandera.engines.polars_engine.Array(inner=None, shape=None, *, width=None)[source]¶
Polars Array nested type.
Attributes
auto_coerce
Whether to force coerce to be True in all cases
continuous
Whether the number data type is continuous.
Methods
- check(pandera_dtype, data_container=None)[source]¶
Check that pandera
DataType
are 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.