github unionai-oss/pandera v0.24.0

28 days ago

✨ Highlights ✨

Import pandera.pandas to define schemas for pandas objects

🚨 Breaking Change

pandera==0.24.0 has dropped the dependency on pandas and numpy and has introduced a pandas extra. This will break any users who relied on pandas as a the transitive dependency of pandera to install pandas. To remediate this, do the following:

Install pandas explicitly or use the pandas extra

pip install 'pandera[pandas]'  # recommended
# or
pip install pandas pandera

Change your import to pandera.pandas

All pandas-specific symbols that were exposed by the top-level pandera module are now defined in the pandera.pandas module.

# old import
import pandera as pa

# new import
import pandera.pandas as pa

Importing pandera as pa for defining pandas schemas will still be available but will raise a warning. This will raise an ImportError in 5 minor releases (0.29.0).

What's Changed

New Contributors

Full Changelog: v0.23.1...v0.24.0

Don't miss a new pandera release

NewReleases is sending notifications on new releases.