Skip to content

Conversation

@m-farooqui
Copy link

Fixed the misleading documentation in this issue. The fn_mutate_inplace example comment was incorrect - Pandera doesn't actually raise an error due to a limitation with @check types and in-place Data Frame modifications.

What I changed:

  • Corrected the misleading comment
  • Added documentation explaining the limitation
  • Provided a working example and manual validation workaround

Signed-off-by: m-farooqui <farooqui.awais@gmail.com>
… synthesis strategies

- Add installation note to data_synthesis_strategies.md
- Clarifies that pip install 'pandera[strategies]' is required
- Resolves confusion between hypotheses vs strategies extras
- Matches format used in hypothesis.md page

This Resolves Issue#1649

Signed-off-by: m-farooqui <farooqui.awais@gmail.com>
- Fix incorrect comment in fn_mutate_inplace example
- Add warning about @check_types limitation with in-place modifications
- Add working example demonstrating proper @check_types behavior
- Provide manual validation workaround for the limitation

The @check_types decorator may not catch schema violations when
DataFrames are modified in-place after being validated with .pipe().
This happens because in-place operations don't invalidate the attached
schema, causing @check_types to skip re-validation.

Resolves unionai-oss#2117

Signed-off-by: m-farooqui <farooqui.awais@gmail.com>
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.37%. Comparing base (812b2a8) to head (ff7b67d).
⚠️ Report is 364 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2160      +/-   ##
==========================================
- Coverage   94.28%   86.37%   -7.91%     
==========================================
  Files          91      136      +45     
  Lines        7013    10822    +3809     
==========================================
+ Hits         6612     9348    +2736     
- Misses        401     1474    +1073     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cosmicBboy cosmicBboy closed this Oct 31, 2025
@cosmicBboy cosmicBboy reopened this Oct 31, 2025
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.

2 participants