Skip to content

Conversation

@mattB1989
Copy link
Contributor

Fixes this issue

@codecov
Copy link

codecov bot commented Mar 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.02%. Comparing base (4df61da) to head (a0838d3).
Report is 43 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

failure_cases = (
reshape_failure_cases(check_obj[isna], ignore_na=False)
if not passed
else pd.DataFrame()
Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Contributor Author

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.

@cosmicBboy cosmicBboy merged commit cdf9ffc into unionai-oss:main Apr 1, 2024
max-raphael pushed a commit to max-raphael/pandera that referenced this pull request Jan 24, 2025
* do not format if tests is not necessary

Signed-off-by: matt <[email protected]>

* replacing empty dataframe by None

---------

Signed-off-by: matt <[email protected]>
Co-authored-by: matt <[email protected]>
Co-authored-by: Niels Bantilan <[email protected]>
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.

Performance issue with nulls in pandas dataframe with multi-index validation

2 participants