-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix BUG: overflow on pd.Timedelta(nanoseconds=) constructor #32424
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 BUG: overflow on pd.Timedelta(nanoseconds=) constructor #32424
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.
Thanks for the PR!
@@ -16,6 +16,8 @@ | |||
(1, 1), | |||
(np.int64(2), 2), | |||
(np.int32(3), 3), | |||
(Timedelta(1e10), 1e10), |
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 this is worthy of its own test rather than parametrizing - can you separate this out?
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.
Sure, no problem. Is it useful to mark the test with a reference to the ticket?
Is this file OK? Or is there a better one?
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.
Totally - just add # GH 32402
in the body of the test
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.
Done
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
@jreback care to take a look? |
422497f
to
9ac50f4
Compare
thanks @roberthdevries very nice |
Add regression test
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff