-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
do not format if test is not necessary #1530
Conversation
Signed-off-by: matt <m.bouchy@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1530 +/- ##
===========================================
- Coverage 94.29% 83.02% -11.28%
===========================================
Files 91 111 +20
Lines 7024 8151 +1127
===========================================
+ Hits 6623 6767 +144
- Misses 401 1384 +983 ☔ View full report in Codecov by Sentry. |
pandera/backends/pandas/array.py
Outdated
failure_cases = ( | ||
reshape_failure_cases(check_obj[isna], ignore_na=False) | ||
if not passed | ||
else pd.DataFrame() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make sure that this empty dataframe contains the same column names as the output of reshape_failure_cases
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can actually also be None
if the check passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced with None, it's cleaner. I'm not sure the drop in code coverage is due to me, I can certainly look to add a test but not sure if it is absolutely necessary or where to start from.
Fixes this issue