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

Bugfix: Ensure defaults are correctly applied #1240

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

kykyi
Copy link
Contributor

@kykyi kykyi commented Jun 27, 2023

Fixing: #1193

The default values is currently incorrectly applied to check_obj, meaning that the NaN values are filled with the first columns default value 🥴

This PR fixes this bug, ensuring that only the column/series/field's NaN values are filled, not the entire dataframe!

Signed-off-by: Baden Ashford <baden.ashford@gmail.com>
@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (deaddfb) 97.25% compared to head (c0940bd) 97.25%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1240   +/-   ##
=======================================
  Coverage   97.25%   97.25%           
=======================================
  Files          65       65           
  Lines        5101     5106    +5     
=======================================
+ Hits         4961     4966    +5     
  Misses        140      140           
Impacted Files Coverage Δ
pandera/backends/pandas/array.py 98.36% <100.00%> (+0.07%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cosmicBboy
Copy link
Collaborator

🚀

@cosmicBboy cosmicBboy merged commit 26470c6 into unionai-oss:main Jun 28, 2023
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