-
Notifications
You must be signed in to change notification settings - Fork 411
Ensure datetime_format warning is only raised once
#2737
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2737 +/- ##
=======================================
Coverage 98.10% 98.10%
=======================================
Files 72 72
Lines 8015 8025 +10
=======================================
+ Hits 7863 7873 +10
Misses 152 152
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This Pull Request is not linked to an issue. To ensure our community is able to accurately track resolved issues, please link any issue that will be closed by this PR! |
|
Can you move the issue from Enterprise to the SDV repo so our release process will have an issue to associate this PR with? |
|
Is there a regression test we could write for this change? |
5e4b5e8 to
2855e40
Compare
| A warning is being raised if ``datetime_format`` is missing from a column represented | ||
| as ``object`` in the dataframe and its sdtype is ``datetime``. | ||
| """ | ||
| _datetime_format_warning_flag = sdtype_warnings is not 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.
isn't it possible for other warnings to show up in this list? Should we filter through the sdtype_warnings and specifically find ones with datetime in them
| comp_synth.sample(1) | ||
|
|
||
| # Assert | ||
| assert len(w) == 1 |
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.
I think you should filter through the warnings here as well. Sometimes new deprecation warnings show up and tests like this will fail. We should look specifically for the datetime warning
1be4b03 to
19bd9b7
Compare
CU-86b79j1b3, Resolve #2739
Resolve https://github.com/datacebo/SDV-Enterprise/issues/1569