pandera
Installation
SKILL.md
Pandera: DataFrame Validation
Pandera is an open-source framework for validating DataFrame-like objects at runtime. Define schemas once and reuse them across pandas, polars, Dask, Modin, PySpark, and Ibis backends.
Import Convention
Since pandera v0.24.0, use the backend-specific module. Using the top-level pandera module produces a FutureWarning and will be deprecated in v0.29.0.
import pandera.pandas as pa # pandas (recommended)
import pandera.polars as pa # polars
from pandera.typing.pandas import DataFrame, Series, Index
Two Schema Styles
Object-based API (DataFrameSchema)
Suitable for dynamic schema construction or when schemas need to be built programmatically.