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

🐛 Automatically add missing columns upon .standardize() if nullable is True #2485

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

falexwolf
Copy link
Member

@falexwolf falexwolf commented Feb 18, 2025

After Before
DataFrameCurator.standardize() failed saying: "feature doesn't have a default value". If the feature is nullable, .standardize() will add columns and fill them with pd.NA.

This PR adds a few more other tests of edge cases and makes fixes in the docs.

@falexwolf falexwolf changed the title ♻️ Add a test for schema recreation ✅ Add a test for schema recreation Feb 18, 2025
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.56%. Comparing base (4461551) to head (44adbbb).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2485      +/-   ##
==========================================
+ Coverage   91.53%   91.56%   +0.02%     
==========================================
  Files          64       64              
  Lines        9992    10001       +9     
==========================================
+ Hits         9146     9157      +11     
+ Misses        846      844       -2     

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

Copy link

github-actions bot commented Feb 18, 2025

@github-actions github-actions bot temporarily deployed to pull request February 18, 2025 21:44 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 18, 2025 23:09 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 19, 2025 10:06 Inactive
@falexwolf falexwolf changed the title ✅ Add a test for schema recreation 🐛 Automatically add missing columns upon .standardize() if nullable is True Feb 19, 2025
@falexwolf falexwolf merged commit 280e090 into main Feb 19, 2025
18 checks passed
@falexwolf falexwolf deleted the testforschemarecreation branch February 19, 2025 16:55
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.

1 participant