[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: preserve Check options in schema statistics roundtrip #1844

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexismanuel
Copy link

fix: preserve Check options in schema statistics roundtrip (#694)

What does this PR do?

Fixes #694 by ensuring check options (like raise_warning and ignore_na) are preserved when schemas are serialized and deserialized.

Changes

  • Update parse_checks to include check options in statistics
  • Update parse_check_statistics to reconstruct checks with their original options
  • Update test suite to verify options persistence

Testing

Updated existing test cases in test_schema_statistics.py to verify options persistence
All tests passing locally
All pre-commit are passing
No new warnings introduced

Related Issues

Closes #694

Let me know if you need any additional information or would like me to make any adjustments.

Copy link
codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 30.61224% with 34 lines in your changes missing coverage. Please review.

Project coverage is 59.05%. Comparing base (812b2a8) to head (9b5e30f).
Report is 154 commits behind head on main.

Files with missing lines Patch % Lines
pandera/io/pandas_io.py 0.00% 34 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (812b2a8) and HEAD (9b5e30f). Click for more details.

HEAD has 47 uploads less than BASE
Flag BASE (812b2a8) HEAD (9b5e30f)
48 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1844       +/-   ##
===========================================
- Coverage   94.28%   59.05%   -35.23%     
===========================================
  Files          91      120       +29     
  Lines        7013     9229     +2216     
===========================================
- Hits         6612     5450     -1162     
- Misses        401     3779     +3378     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cosmicBboy
Copy link
Collaborator

@alexismanuel looks like there are some failing unit tests

Signed-off-by: alexismanuel <alexis.manuelpro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

raise_warning option in a Check is not kept when saving the Schema to yaml or script.
2 participants