-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Partial Revert "ENH: infer freq in timedelta_range (#32377)" #36595
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
LGTM |
@simonjayhawkins yep looks good here too; if you can add a release note and merge master; ping on green (and you are in draft status) |
Hello @simonjayhawkins! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-25 18:36:20 UTC |
ci restarted
|
@jreback green |
pandas/core/arrays/timedeltas.py
Outdated
if freq.nanos == 0 and self.freq.nanos != 0: | ||
# e.g. if self.freq is Nano(1) then dividing by 2 | ||
# rounds down to zero | ||
freq = 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.
is reverting this necessary? im surprised there isnt a test that hits it
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.
no idea. maybe added to stop failing tests with inferred freq?
3rd time the charm, thanks @simonjayhawkins |
@meeseeksdev backport 1.1.x |
#32377)" (#36659) Co-authored-by: Simon Hawkins <[email protected]>
closes #35897
maybe alternative to #36582 if no changes since #32377 now fail (not tested locally)
cc @phofl @jbrockmendel