Repository navigation
Releases
v0.36.0: Add ParsedColumns/Fields and Decisions API
⭐️ Highlights
In this release, pandera adds support for ParsedFields and ParsedColumns so you can define columns/fields that are derived from other columns/fields. This unlocks a pandera.decisions API that delegates to decision models (like Jev, or a variety of open weights alternatives) to derive columns from a source column/field:
import enum
import pandas as pd
import pandera.pandas as pa
import pandera.decisions as decisions
class Department(str, enum.Enum):
billing = "billing"
"""Payment, invoices or subscription issues."""
technical = "technical"
"""Bugs, outages or integration problems."""
sales = "sales"
"""Pricing, plans or account expansion."""
class Frustration(enum.IntEnum):
calm = 0
"""Calm, simply stating facts."""
annoyed = 1
"""Frustrated but civil."""
angry = 2
"""Very angry, strong language."""
class Triage(pa.DataFrameModel):
ticket_body: str
department: Department = pa.ParsedField(
description="Which team should handle this ticket",
parser=decisions.Choice(),
)
frustration: Frustration = pa.ParsedField(
description="How frustrated the customer appears",
parser=decisions.Score(),
)
is_urgent: bool = pa.ParsedField(
description="The message conveys time-sensitivity",
parser=decisions.Noul(),
)
class Config:
parser_source = "ticket_body"What's Changed
- fix(pandas): filter invalid rows using complete check results by @chivector in #2611
- fix(pandas): add missing columns without an explicit dtype by @chivector in #2609
- Accept non-string column labels in schema-level unique checks by @feiiiiii5 in #2607
- docs: add financial transaction reconciliation tutorial by @Numroid in #2605
- feat(synthesis): pluggable data-synthesis backend primitives by @cosmicbboy in #2578
- fix(io): preserve datetime comparison bounds in pandas schemas by @chivector in #2613
- fix: detect pyspark on PYTHONPATH without package metadata for numpy2 patch by @cosmicbboy in #2620
- docs(polars): clarify LazyFrame validation typing by @Blues-berry in #2623
- docs(contributing): install uv without pip into the system Python by @thisisshivamtiwari in #2621
- fix: prevent RCE in tensordict load (GHSA-vpwq-239f-3cf7) by @cosmicbboy in #2627
- fix(model): don't require optional dtype params in Annotated metadata by @finnhoang05 in #2625
- docs: generalize the derived-columns spec beyond one decision model by @cosmicbboy in #2527
- fix(ibis): empty tables vacuously satisfy checks by @inchang-ing in #2629
- fix(io): restore nested tuple column labels by @bosprimigenious in #2632
- docs: fix :param names that do not match the signatures by @mmporong in #2619
- docs: update top banner for DataFusion and fix table dark-mode rendering by @cosmicbboy in #2585
- feat: map Enum and Literal to categorical data types by @cosmicbboy in #2515
- fix(polars): make Enum dtypes comparable and hashable by @DG47 in #2634
- test(pandas): pin signedness in the integer dtype check by @Trenyx in #2630
- fix(io): preserve single-level MultiIndex schemas by @bosprimigenious in #2636
- docs: advertise ParsedField/ParsedColumn and the decisions API by @cosmicbboy in #2641
- perf(polars): read the frame schema once in collect_column_info by @evnchn in #2647
New Contributors
- @chivector made their first contribution in #2611
- @Blues-berry made their first contribution in #2623
- @thisisshivamtiwari made their first contribution in #2621
- @finnhoang05 made their first contribution in #2625
- @inchang-ing made their first contribution in #2629
- @bosprimigenious made their first contribution in #2632
- @mmporong made their first contribution in #2619
- @Trenyx made their first contribution in #2630
- @evnchn made their first contribution in #2647
Full Changelog: v0.35.0...v0.36.0
v0.35.0
⭐️ Highlights
Pandera now supports DataFusion schemas
import pyarrow
from datafusion import SessionContext
import pandera.datafusion as pa
schema = pa.DataFrameSchema(
{
"state": pa.Column(str),
"city": pa.Column(str),
"price": pa.Column(int, pa.Check.in_range(5, 20)),
}
)
ctx = SessionContext()
df = ctx.from_arrow(
pyarrow.table(
{
"state": ["FL", "FL", "CA", "CA"],
"city": ["Orlando", "Miami", "Los Angeles", "San Francisco"],
"price": [8, 12, 10, 16],
}
)
)
schema.validate(df)And of course the class-based dataframe models as well:
class Schema(pa.DataFrameModel):
state: str
city: str
price: int = pa.Field(in_range={"min_value": 5, "max_value": 20})
Schema.validate(df)What's Changed
- ci: fix path-filter quantifier so docs-only PRs skip unit tests by @cosmicbboy in #2545
- fix: propagate nested Column drop_invalid_rows without mutation by @cosmicbboy in #2551
- fix(io): read parametrized polars dtypes back from yaml/json by @aminmiral in #2523
- fix(polars,ibis): ignore nulls in unique_values_eq by @MohammadHijjawi97 in #2538
- spec: pluggable data synthesis backends (realistic data generation) by @cosmicbboy in #2557
- docs(spec): apply review fixes to pluggable data synthesis proposal by @cosmicbboy in #2561
- feat(tensordict): nested keys, element-level check errors, field custom checks, and @check_types integration by @cosmicbboy in #2560
- fix(io): serialize MultiIndex options so they survive yaml/json/script round trips by @owgreen-dev in #2504
- feat(datafusion): add datafusion.DataFrame schema validation via the narwhals-datafusion plugin by @s5dsn-eqee in #2540
- fix(pandas): carry Column default through schema serialization by @feiiiiii5 in #2528
- fix(decorators): forward validation options to the positional obj_getter selector by @feiiiiii5 in #2499
- fix(checks): reject conflicting length arguments in Check.str_length by @yang00333 in #2564
- fix(narwhals): resolve six datafusion xfails in the shared backend by @cosmicbboy in #2562
- test(polars): reset only polars entries in the shared backend registry by @feiiiiii5 in #2502
- docs(tensordict): make failure-case example self-contained so docs build passes by @cosmicbboy in #2569
- fix(polars): coerce to Decimal without a Float64 round trip by @DG47 in #2574
- fix(pandas): carry report_duplicates and index default through serialization by @aminmiral in #2573
- docs(contributing): point the Sphinx RST link at the current primer by @Yi-111-a in #2571
- fix(io): serialize set check statistics such as unique_values_eq by @LuisFigueroaG in #2591
- fix(tests): suppress large_base_example health check in hypothesis profiles by @cosmicbboy in #2593
- fix(dask): validate Series indexes by @ska2704 in #2596
- fix(polars): report a schema error for a non-decimal column by @atharva-mashalkar in #2595
- fix(engines): resolve parametrized generic Decimal dtypes by @DG47 in #2592
- fix(pandas): drop columns without deprecated pandas inplace param by @cosmicbboy in #2600
- fix(xarray): propagate coordinate
requiredmetadata by @antoninkriz in #2488 - fix(io): format dataframe-level checks in to_script by @chuenchen309 in #2418
- fix(polars): exclude explicit columns from regex alias selectors (#2343) by @capyBearista in #2441
- docs: advertise DataFusion support in the docs top-level banner by @cosmicbboy in #2604
- Add explicit stacklevel to warnings and enforce with ruff B028 by @feiiiiii5 in #2500
- fix(datafusion): fix warning lint and backend test matrix by @Numroid in #2606
- fix(pandas): don't repeat duplicate-label columns when adding missing columns by @raams95 in #2601
- docs(api): drop the stray dataframe_schema param from to_json_schema by @VenishPaneliya in #2597
- fix: only patch numpy 2 aliases for pyspark < 4 (#2134) by @adilKhan72 in #2590
- ci: don't run the full test matrix for non-CI files under .github/ by @agarg21 in #2589
- chore: configure Ruff as VS Code formatter by @BALOGUN-DAVID in #2588
- docs(contributing): fix broken Dataframe schemas examples link by @kun654 in #2587
New Contributors
- @aminmiral made their first contribution in #2523
- @MohammadHijjawi97 made their first contribution in #2538
- @owgreen-dev made their first contribution in #2504
- @s5dsn-eqee made their first contribution in #2540
- @yang00333 made their first contribution in #2564
- @DG47 made their first contribution in #2574
- @Yi-111-a made their first contribution in #2571
- @LuisFigueroaG made their first contribution in #2591
- @ska2704 made their first contribution in #2596
- @atharva-mashalkar made their first contribution in #2595
- @antoninkriz made their first contribution in #2488
- @chuenchen309 made their first contribution in #2418
- @capyBearista made their first contribution in #2441
- @Numroid made their first contribution in #2606
- @raams95 made their first contribution in #2601
- @adilKhan72 made their first contribution in #2590
- @agarg21 made their first contribution in #2589
- @BALOGUN-DAVID made their first contribution in #2588
- @kun654 made their first contribution in #2587
Full Changelog: v0.34.1...v0.35.0
v0.34.1
What's Changed
- Add spec for generic dataframe-agnostic schema API by @cosmicbboy in #2401
- docs: announce PyTorch TensorDict support in the docs banner by @cosmicbboy in #2544
Full Changelog: v0.34.0...v0.34.1
v0.34.0
⭐️ Highlights
This release adds TensorDict as a supported data container that can be validated with pandera:
import torch
from tensordict import TensorDict
import pandera.tensordict as pa
schema = pa.TensorDictSchema(
keys={
"observation": pa.Tensor(dtype=torch.float32, shape=(None, 10)),
"action": pa.Tensor(dtype=torch.float32, shape=(None, 5)),
},
batch_size=(32,),
)
td = TensorDict(
{"observation": torch.randn(32, 10), "action": torch.randn(32, 5)},
batch_size=[32],
)
schema.validate(td)Or using a class-based model:
class RL(pa.TensorDictModel):
"""Schema for reinforcement learning data."""
# Use PyTorch dtypes in type annotations
observation: torch.float32 = pa.Field(shape=(None, 10))
action: torch.int64 = pa.Field(shape=(None,))
reward: torch.float32 = pa.Field()
class Config:
batch_size = (32,)
# Validate using the model - schema is built automatically
td = TensorDict(
{"observation": torch.randn(32, 10), "action": torch.randint(0, 4, (32,)), "reward": torch.randn(32)},
batch_size=[32],
)
RL.validate(td)What's Changed
- feat(polars): add support for nested DataFrameModel validation by @Nikhil-jaiswal007 in #2439
- ci: always run linters, regardless of changed paths by @cosmicbboy in #2462
- docs: add a "Backward Compatibility" section to AGENTS.md by @Dev-iL in #2461
- fix(api): raise informative TypeError for non-dataframe validate() input by @cognis-digital in #2421
- Reject reversed bounds in Check.str_length by @chiruu12 in #2476
- fix(polars): fail loudly on user-declared parsers instead of skipping them by @feiiiiii5 in #2473
- fix(polars): honour ignore_na=False when the check output is null by @ebarkhordar in #2471
- fix(config): coerce a string validation_depth instead of silently disabling gating by @shashvat-singham in #2470
- docs: clarify parser and check execution order (#2045) by @IshanA2007 in #2466
- Fix documented default for DataFrameSchema.reset_index drop by @VenishPaneliya in #2465
- Report integer coercion overflow instead of wrapping silently by @shashvat-singham in #2443
- fix: correct get_metadata return annotations by @Gagandeep-2003 in #2424
- Fix implicit Optional on Column dtype in the Ibis backend by @VenishPaneliya in #2474
- fix(polars): pass parser_output on Category.try_coerce's ParserError so lazy validation reports failure cases instead of crashing by @AmirF194 in #2469
- fix(polars): do not select absent optional columns when adding missin… by @Moandco in #2460
- fix(polars): add missing columns with string defaults as literals (#2463) by @Moandco in #2464
- fix(pandas): match tz-aware datetime dtypes that render identically (#1839) by @cycsmail in #2416
- docs: derived columns + System One (Jev) parsing proposal by @cosmicbboy in #2508
- fix(io): keep renamed built-in checks in serialized schemas by @feiiiiii5 in #2501
- Add PyTorch TensorDict validation backend by @cosmicbboy in #2403
- fix: pass through unresolved TypeVar annotations in check_types by @sneha4175 in #2513
- fix(pandas): stop KeyError for column dtypes outside the json-schema types by @feiiiiii5 in #2492
- fix(pandas): propagate a column's own drop_invalid_rows through DataFrameSchema by @AmirF194 in #2521
- fix(io): keep groupby and groups when serializing checks by @Rodrigo-Palma in #2490
- fix(narwhals): handle scalar polars check outputs by @vgvr0 in #2542
- fix(dtypes): reject negative Decimal scale with the documented error by @feiiiiii5 in #2507
New Contributors
- @Nikhil-jaiswal007 made their first contribution in #2439
- @cognis-digital made their first contribution in #2421
- @chiruu12 made their first contribution in #2476
- @ebarkhordar made their first contribution in #2471
- @shashvat-singham made their first contribution in #2470
- @IshanA2007 made their first contribution in #2466
- @VenishPaneliya made their first contribution in #2465
- @Gagandeep-2003 made their first contribution in #2424
- @AmirF194 made their first contribution in #2469
- @Moandco made their first contribution in #2460
- @sneha4175 made their first contribution in #2513
- @Rodrigo-Palma made their first contribution in #2490
- @vgvr0 made their first contribution in #2542
Full Changelog: v0.33.1...v0.34.0
v0.33.1
What's Changed
- docs: announce Pandera CLI and PyArrow support in banner by @cosmicbboy in #2456
- fix: restore optional-column semantics for bare
T | Noneannotations by @cosmicbboy in #2458 - Warn when optional columns are missing via on_missing option by @ChrisJr404 in #2447
- ci: add actionlint workflow and pre-commit hook by @chernojagne in #2436
New Contributors
- @ChrisJr404 made their first contribution in #2447
- @chernojagne made their first contribution in #2436
Full Changelog: v0.33.0...v0.33.1
v0.33.0: Introducing `pandera` CLI, support pyarrow table
What's Changed
- Report all missing required columns in lazy validation by @vineethsaivs in #2397
- fix(pandas): report differing categories in dtype mismatch error by @sha-sta in #2391
- fix(pandas-engine): treat an Enum annotation as a categorical dtype (#2052) by @cycsmail in #2399
- fix(pandas): run column parsers before dataframe-level coercion by @sha-sta in #2400
- fix(pandas): treat NA as coercible for masked nullable dtypes by @sha-sta in #2404
- Fix parenthesized @dataframe_parser() decorator form by @vineethsaivs in #2408
- fix(polars): avoid concat deprecation in lazy validation by @RedZapdos123 in #2411
- fix: Repair coerce and parser options for xarray Datasets by @abaarsma in #2413
- feat(narwhals): support the pandas schema API in the narwhals backend by @cosmicbboy in #2417
- fix(io): deserialize parametrized Decimal dtypes from yaml/json by @cycsmail in #2434
- fix(pandas): apply parsers to Index fields and schema components by @cycsmail in #2435
- feat(pyarrow): add first-class pyarrow.Table schema validation by @sravankumarkunadi in #2427
- Add a pandera CLI: validate, infer, and generate commands by @cosmicbboy in #2402
- add backend info to the cli by @cosmicbboy in #2446
- fix(pandas): respect Optional pydantic fields as nullable in PydanticModel columns (closes #2406) by @feiiiiii5 in #2429
- doc: Fix "list" type annotation by @VeckoTheGecko in #2440
- Support itemsize-parameterized numpy dtypes in the pandas engine by @mannemkarthik010 in #2437
- fix: bind self correctly in check_input when an arg is passed by keyword by @Sanjays2402 in #2428
- fix(polars): raise minimum polars version to
1.20.0by @fhoehle in #2412 - docs: fix duplicated "the" typos in Check and Hypothesis docstrings by @maupatel in #2445
- Add a backend-neutral
FieldType[T]typing contract by @Dev-iL in #2448 - fix: handle scalar groupby keys in _format_groupby_input by @feiiiiii5 in #2420
- fix(decorators): support keyword-only / variadic functions in check_input by @feiiiiii5 in #2454
- ci: only run unit tests for changed areas by @cosmicbboy in #2450
- fix(docs): make intersphinx fetch resilient to transient failures by @cosmicbboy in #2452
- fix(docs): scope pyspark JDK24 security-manager opt-in to JDK 24 only by @cosmicbboy in #2451
- fix: respect pydantic serialization aliases by @mameikagou in #2449
New Contributors
- @sha-sta made their first contribution in #2391
- @abaarsma made their first contribution in #2413
- @sravankumarkunadi made their first contribution in #2427
- @feiiiiii5 made their first contribution in #2429
- @VeckoTheGecko made their first contribution in #2440
- @mannemkarthik010 made their first contribution in #2437
- @Sanjays2402 made their first contribution in #2428
- @fhoehle made their first contribution in #2412
- @maupatel made their first contribution in #2445
- @mameikagou made their first contribution in #2449
Full Changelog: v0.32.1...v0.33.0
v0.32.1
What's Changed
- fix: isolate config context per execution context by @gaoflow in #2380
- Use Codecov carryforward flags for CI coverage uploads by @RedZapdos123 in #2370
- ci: make codecov upload failures non-blocking by @RedZapdos123 in #2385
- fix: register builtin checks in polars-only install (#2387) by @lukew-cogapp in #2389
- Fix pandas schema validation thread-safety by @micheleeet in #2383
- fix(strategies): avoid strategy truthiness checks by @RedZapdos123 in #2382
- Support pydantic aliases in dataframe schemas by @09Catho in #2381
- docs: document multiple inheritance of DataFrameModel mixins (#986) by @cycsmail in #2392
- fix: handle missing regex matches in pyspark models by @RedZapdos123 in #2394
- fix: preserve xarray regex DataVar schemas across validation by @RedZapdos123 in #2393
New Contributors
- @micheleeet made their first contribution in #2383
- @09Catho made their first contribution in #2381
Full Changelog: v0.32.0...v0.32.1
v0.32.0
⭐️ Highlights: Add support for narwhals backend
In this release, we're adding support for a narwhals backend that supports the polars, ibis and pyspark-sql schema APIs. To enable it, install the narwhals extra with the support framework of your choice:
pip install 'pandera[narwhals,polars]' # Polars
pip install 'pandera[narwhals,ibis]' # Ibis
pip install 'pandera[narwhals,pyspark]' # PySpark SQL
Then enable with an environment variable:
export PANDERA_USE_NARWHALS_BACKEND=TrueOr configure programmatically:
import pandera.polars as pa
# import pandera.pyspark as pa # 👈 for pyspark schemas
# import pandera.ibis as pa # 👈 for ibis schemas
# CONFIG.use_narwhals_backend is read here — not at import time above
pa.config.set_config(use_narwhals_backend=True)
schema = pa.DataFrameSchema({"name": pa.Column(str)}) # narwhals backends registered
schema.validate(df)See the docs for more information.
What's Changed
- fix: Ibis validation fails checks if column all nulls by @cosmicbboy in #2296
- fix: StringDtype validation fails for empty DataFrames by @cosmicbboy in #2295
- Clean up duplicate code and extra files from #2296 by @deepyaman in #2298
- Pyspark: Added unique_values_eq builtin check by @aditypan in #2300
- feat(narwhals): implement the new unifying backend by @deepyaman in #2223
- refactor(narwhals): make backend opt-in via config by @deepyaman in #2314
- refactor(narwhals): add per-backend test structure by @deepyaman in #2315
- [Narwhals] add docs, some code cleanup by @cosmicbboy in #2312
- fix(polars): handle PydanticModel dtype in DataFrameModel.empty() by @Dev-iL in #2313
- fix: ensure index fields have persistent metadata by @WPDOrdina in #2217
- refactor(polars): preserve input frame kind in
coerce_dtypeby @Dev-iL in #2317 - chore: delete extraneous isort hook for pre-commit by @deepyaman in #2320
- test(ibis): enable decimal datatype test after fix by @deepyaman in #2321
- fix(tests): drop deprecated axis=None from DataFrame.sum call (#2309) by @terryzm1 in #2311
- docs: clarify required extra for data synthesis strategies by @RedZapdos123 in #2304
- chore: add
Timeas a cross-engine semantic dtype by @deepyaman in #2323 - refactor: consolidate backend-specific test suites by @deepyaman in #2318
- Bugfix/2319 by @Concrete-Slab in #2324
- feat(strategies): aggregate check constraints to skip filter chains by @cosmicbboy in #2322
- Improvement/ enable raising schema error in custom check by @Jarek-Rolski in #2340
- fix(polars): stringify nested dtypes in lazy failure-case formatter by @lukew-cogapp in #2341
- docs: clarify optional missing columns by @remsky in #2338
- fix: handle SchemaErrors in check_types Union fallback (#2325) by @SAY-5 in #2326
- Fix mypy type hinting for Polars DataFrameModel field annotations by @RedZapdos123 in #2303
- Fixed issue where Pandera cannot handle metadata through Annotated types by @NGHades in #2111
- fix narwhals incompatibility by @cosmicbboy in #2342
- refactor: pydantic/polars cleanup and benchmark coverage by @Dev-iL in #2357
- Clarify ignore_na null handling in checks docs by @vanta722 in #2355
- fix(polars): avoid coercing missing required columns by @remsky in #2346
- feat(pyspark): register Narwhals backend for Spark by @deepyaman in #2339
- Address comments from full Narwhals backend review by @deepyaman in #2360
- docs(pydantic): clarify v2 string coercion semantics by @RedZapdos123 in #2348
- update narwhals docs by @cosmicbboy in #2365
- update config, add set_config by @cosmicbboy in #2366
- Harden CI dependency installation by @RedZapdos123 in #2369
- fix(extensions): reject extra positional args in register_check_method (#480) by @jbbqqf in #2347
- fix: handle mixed-timezone pandas datetime coercion by @RedZapdos123 in #2350
- fix(pandas): keep ArrowString resolution stable by @RedZapdos123 in #2353
- feat: allow
rename_columnsto work as long as final columns are unique by @AchillesTurtle in #2373 - fix(polars): don't error on optional regex column with no match by @gaoflow in #2374
- fix: reload built-in check dispatcher by its own name so a custom name= works (#2042) by @vineethsaivs in #2371
- fix(polars): report concrete column name in regex coercion errors (#2363) by @gaoflow in #2376
- feat: enable runtime narwhals backend toggling via set_config by @cosmicbboy in #2375
- fix(pandas): preserve drop_invalid_rows in schema IO by @RedZapdos123 in #2354
- docs: note regex engine differences between pandas and polars backends (#2349) by @cycsmail in #2378
New Contributors
- @WPDOrdina made their first contribution in #2217
- @Concrete-Slab made their first contribution in #2324
- @lukew-cogapp made their first contribution in #2341
- @remsky made their first contribution in #2338
- @SAY-5 made their first contribution in #2326
- @NGHades made their first contribution in #2111
- @vanta722 made their first contribution in #2355
- @jbbqqf made their first contribution in #2347
- @AchillesTurtle made their first contribution in #2373
- @gaoflow made their first contribution in #2374
- @vineethsaivs made their first contribution in #2371
- @cycsmail made their first contribution in #2378
Full Changelog: v0.31.1...v0.32.0
v0.31.1
What's Changed
- Fix pandera[polars] import without pandas by @cosmicbboy in #2291
Full Changelog: v0.31.0...v0.31.1
v0.31.0: Validate Xarray DataArray, Dataset, and DataTree
⭐️ Highlights
This is the release for all of you geospatial and multidimensional array-handling folks out there.
xarray support
Pandera now provides full support for xarray 🚀
Write a DatasetSchema with the object-based API
import numpy as np
import xarray as xr
import pandera.xarray as pa
schema = pa.DatasetSchema(
data_vars={
"temperature": pa.DataVar(dtype=np.float64, dims=("x", "y")),
"pressure": pa.DataVar(dtype=np.float64, dims=("x", "y")),
},
coords={"x": pa.Coordinate(dtype=np.float64)},
)
ds = xr.Dataset(
{
"temperature": (("x", "y"), np.random.rand(3, 4)),
"pressure": (("x", "y"), np.random.rand(3, 4)),
},
coords={"x": np.arange(3, dtype=np.float64)},
)
schema.validate(ds)Or a DatasetModel with the class-based API:
from pandera.typing.xarray import Coordinate
class Surface(pa.DatasetModel):
temperature: np.float64 = pa.Field(dims=("x", "y"))
pressure: np.float64 = pa.Field(dims=("x", "y"))
x: Coordinate[np.float64]
Surface.validate(ds)First-class geopandas support
This release also adds first-class GeoDataFrameSchema and GeoDataFrameModel APIs for geopandas: https://pandera.readthedocs.io/en/latest/geopandas.html
What's Changed
- Bugfix/2213: handle schema errors correctly when strict and ordered are True by @cosmicbboy in #2242
- fix column errors by @cosmicbboy in #2244
- Bugfix/polars performance warning and housekeeping by @fabianbergermann in #2254
- Fix pandas typing empty-list constructor inference (#2247) by @RedZapdos123 in #2251
- test pandas model optional union with typing alias (resolves issue: #2211) by @RedZapdos123 in #2252
- fix(mypy): type DataFrameModel field class attributes as str by @RedZapdos123 in #2255
- Use docstring_substitution for strategy and example in DataFrameModel by @terryzm1 in #2248
- Included pyspark str_matches builtin check by @aditypan in #2249
- fix io serialization for custom check errors (#2143) by @RedZapdos123 in #2253
- Fix pyspark.pandas coerce+nullable failure case reporting by @RedZapdos123 in #2256
- fix(pandas): preserve tz-aware MultiIndex level metadata by @RedZapdos123 in #2258
- fix(strategies): support exact_value in str_length generation by @RedZapdos123 in #2261
- fix(pandas): preserve nulls for nullable typed model fields with coercion by @RedZapdos123 in #2259
- fix(pandas): handle all-NaT nullable Date defaults in added columns by @RedZapdos123 in #2260
- Add support for Xarray by @cosmicbboy in #2266
- Add io serialization support for all supported backends. by @cosmicbboy in #2267
- Dataset/DataFrameModel classes can be serialized directly by @cosmicbboy in #2272
- fix(pandas): preserve DataFrameModel Index metadata in generated schema components by @RedZapdos123 in #2270
- fix(ibis): preserve failed_cases row index positions by @RedZapdos123 in #2269
- add geopandas schema/model support by @cosmicbboy in #2273
- Fix JSON serialization for tuple-labeled schema columns by @RedZapdos123 in #2268
- update type annotation for DataFrame.from_records to include Sequence[Mapping[str, Any]] by @cosmicbboy in #2274
- fix inplace mutation check_types behavior by @cosmicbboy in #2276
- fix DataFrame.from_records bug by @cosmicbboy in #2278
- Fix DataFrame.from_records parser execution with coerce=True by @RedZapdos123 in #2279
- Fix applymap deprecation warning in pandas parser backend by @RedZapdos123 in #2281
- docs: update xarray integration info for v0.31.0 by @cosmicbboy in #2283
- fix(pandas): export errors in pandera.pandas public API by @RedZapdos123 in #2287
- tests(mypy): add regression coverage for polars Column Decimal/Struct typing by @RedZapdos123 in #2286
- fix: support Spark Connect DataFrame in cache_check_obj decorator by @yurivski in #2282
- test(pyspark): add str_length regressions for issues #1311 and #1314 by @RedZapdos123 in #2288
New Contributors
- @fabianbergermann made their first contribution in #2254
- @RedZapdos123 made their first contribution in #2251
- @terryzm1 made their first contribution in #2248
- @aditypan made their first contribution in #2249
- @yurivski made their first contribution in #2282
Full Changelog: v0.30.1...v0.31.0