Skip to content

Releases: unionai-oss/pandera

Release v0.20.2: Complete pyarrow coverage, support polars v1

16 Jul 13:08
50949b0
Compare
Choose a tag to compare

⭐️ Highlights:

What's Changed

New Contributors

Full Changelog: v0.20.1...v0.20.2

Release v0.20.1: Bugfix for pyarrow dependency error

27 Jun 18:41
44a9763
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.20.0...v0.20.1

Release v0.20.0: Pyarrow dtype support

26 Jun 16:58
a041e06
Compare
Choose a tag to compare

⭐️ Highlights

  • Pandera now supports pyarrow datatypes in the pandera validation engine! Big shoutout to @aaravind100 for the heavy lifting here.
  • Added compatibility for numpy v2.
  • Add compatibility for polars v1
  • pandera.SchemaModel is now deprecated, use pandera.DataFrameModel instead.

What's Changed

New Contributors

Full Changelog: v0.19.2...v0.20.0

Release 0.19.3: Polars dtype bugfixes

14 May 02:45
d2bfed0
Compare
Choose a tag to compare

What's Changed

  • bugfix: timezone-agnostic datetime in polars works in DataFrameModel by @cosmicBboy #1638
  • Bugfix/1631: Series[Annotated[...]] DataFrameModel types should correctly create a DataFrameSchema by @cosmicBboy in #1633
  • Add missing pandas import line. by @kyleweise in #1635

New Contributors

Full Changelog: v0.19.2...v0.19.3

Release v0.19.2: Bugfix on correctly checking nullable Floats

08 May 21:28
63140c9
Compare
Choose a tag to compare

What's Changed

  • bugfix: nullable check float dtype handles nan and null by @cosmicBboy in #1627

Full Changelog: v0.19.1...v0.19.2

Release 0.19.1: Bugfixes and docs fixes

08 May 02:09
0faae07
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.19.0...v0.19.1

Release 0.19.0: Polars validation support

06 May 14:28
612d25c
Compare
Choose a tag to compare

✨ Highlights ✨

📣 Pandera now supports validation of polars.DataFrame and polars.LazyFrame 🐻‍❄️!

You can now do this:

import pandera.polars as pa
import polars as pl


class Schema(pa.DataFrameModel):
    state: str
    city: str
    price: int = pa.Field(in_range={"min_value": 5, "max_value": 20})


lf = pl.LazyFrame(
    {
        'state': ['FL','FL','FL','CA','CA','CA'],
        'city': [
            'Orlando',
            'Miami',
            'Tampa',
            'San Francisco',
            'Los Angeles',
            'San Diego',
        ],
        'price': [8, 12, 10, 16, 20, 18],
    }
)
Schema.validate(lf).collect()

And of course you can do functional validation with decorators like so:

from pandera.typing.polars import LazyFrame

@pa.check_types
def function(lf: LazyFrame[Schema]) -> LazyFrame[Schema]:
    return lf.filter(pl.col("state").eq("CA"))

function(lf).collect()

You can read more about the integration here. Not all pandera features are supported at this point, but depending on community demand/contributions we'll slowly add them. To learn more about what's currently supported, check out this table.

Special shoutout to @AndriiG13 and @FilipAisot for their contributions on the built-in checks and polars datatypes, respectively, and to @evanrasmussen9, @baldwinj30, @obiii, @Filimoa, @philiporlando, @r-bar, @alkment, @jjfantini, and @robertdj for their early feedback and bug reports during the 0.19.0 beta.

What's Changed

New Contributors

Full Changelog: v0.18.3...v0.19.0

Beta release: v0.19.0b4

03 May 04:11
d058f71
Compare
Choose a tag to compare
Pre-release

What's Changed

  • fix pyspark tests when run on full test suite by @cosmicBboy in #1593
  • Bugfix/1580 by @cosmicBboy in #1596
  • Set pandas_io.from_frictionless_schema to use a raw string for docs by @mark-thm in #1597
  • Add a generic Series type for polars by @baldwinj30 in #1595
  • Add StructType and DDL extraction from Pandera schemas by @filipeo2-mck in #1570
  • Clean up typing for pandas GenericDtype by @cosmicBboy in #1601
  • Adding warning for unique in pyspark field and a test showing the issue as well as config when it works. by @zippeurfou in #1592
  • bugfix/1607: coercion error should correctly report relevant failure cases by @cosmicBboy in #1608
  • Create a common DataFrameSchema class, update mypy used in pre-commit by @cosmicBboy in #1609

New Contributors

Full Changelog: v0.19.0b3...v0.19.0b4

Beta release: v0.19.0b3

20 Apr 00:58
e4eb3a5
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: v0.19.0b2...v0.19.0b3

Beta release 0.19.0b2

19 Apr 15:34
c1e7c06
Compare
Choose a tag to compare
Beta release 0.19.0b2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.19.0b1...v0.19.0b2