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

🐛 Add check for categorical and source keys in Curate #1880

Merged
merged 12 commits into from
Sep 2, 2024

Conversation

Zethson
Copy link
Member

@Zethson Zethson commented Aug 30, 2024

Fixes #1833

  • Now raising a ValueError when categoricals or sources are passed that do not exist in the columns of the DataFrame.
  • We could have added this to the BaseCurator but since all implementations currently use the DataFrameCurator it's fine like this.

Zethson added 10 commits August 30, 2024 15:59
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Signed-off-by: zethson <[email protected]>
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.31%. Comparing base (6c39772) to head (dc67017).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1880      +/-   ##
==========================================
+ Coverage   92.26%   92.31%   +0.04%     
==========================================
  Files          52       52              
  Lines        5922     5931       +9     
==========================================
+ Hits         5464     5475      +11     
+ Misses        458      456       -2     

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

Copy link

github-actions bot commented Aug 30, 2024

@github-actions github-actions bot temporarily deployed to pull request August 30, 2024 22:51 Inactive
Signed-off-by: zethson <[email protected]>
@github-actions github-actions bot temporarily deployed to pull request September 2, 2024 08:03 Inactive
Signed-off-by: zethson <[email protected]>
@Zethson Zethson marked this pull request as ready for review September 2, 2024 08:19
@Zethson Zethson merged commit bca4f56 into main Sep 2, 2024
10 of 11 checks passed
@Zethson Zethson deleted the feature/curate_source_not_found branch September 2, 2024 08:19
@Zethson Zethson changed the title 🐛 Fix categoricals and sources being checked 🐛 Add check for categorical and source keys in Curate Sep 2, 2024
falexwolf pushed a commit that referenced this pull request Sep 2, 2024
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.

Consider printing warning or erroring when passed source to curate cannot be found
1 participant