-
Notifications
You must be signed in to change notification settings - Fork 306
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
Fix KeyError
in CTGANSynthesizer
when applying constraints
#1718
Fix KeyError
in CTGANSynthesizer
when applying constraints
#1718
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1718 +/- ##
=======================================
Coverage 97.08% 97.08%
=======================================
Files 48 48
Lines 4489 4489
=======================================
Hits 4358 4358
Misses 131 131 ☔ View full report in Codecov by Sentry. |
@@ -154,7 +154,7 @@ def _estimate_num_columns(self, data): | |||
num_generated_columns[column] = 11 | |||
|
|||
elif sdtypes[column] in {'categorical', 'boolean'}: | |||
if transformers[column] is None: | |||
if transformers.get(column) is None: |
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.
nit: Can we do transformers.get(column, None)
so it's explicit?
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.
python
always returns None
.
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.
lgtm, just a minor nit but feel free to merge
CU-86ayw5zbe
Resolves #1717