-
Notifications
You must be signed in to change notification settings - Fork 24
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 enforce_min_max_values to datetime transformers #741
Conversation
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.
One comment but otherwise looks good!
rdt/transformers/datetime.py
Outdated
@@ -30,6 +30,9 @@ class UnixTimestampEncoder(BaseTransformer): | |||
datetime_format (str): | |||
The strftime to use for parsing time. For more information, see | |||
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior. | |||
enforce_min_max_values (bool): |
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.
Maybe we should add this as the last parameter. The main reason is that if someone runs scripts without using the key-word argument names, it might crash after this release since the 4th argument used to be a string and now it is a boolean with a different purpose. This isn't a huge deal though
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!
CU-86aynzc26
Resolve #740