-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
timedelta64[ns]: max() and min() return numpy.int64 #2989
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
Comments
timedeltas IS an int under the hood |
#2990 should close this, merging soon |
DOC: timedelta docs updates for min/max TST: python3 issues
this was merged into master....pls check out and let me know (also slight update on the docs, will be avail after 5pm est today I think...on the dev link) |
Works good, thanks a lot! |
oh, I noticed once thing odd, unrelated to this: >>> diff.head()
0 NaT
1 00:00:00.127999
2 00:00:00.128000
3 00:00:00.128001
4 00:00:00.128000
dtype: timedelta64[ns]
>>> diff[0]
106751 days, 23:47:16.854775 but as usual, that's only a display issue, I guess? |
see below the 'NaT' is really a np.datetime64, with really large negative value, its not a 'type' datetime64[ns] series hold Timestamp types but I think numpy 1.7 fixes this (common usage is 1.6.2) That's why I always wrap a series around the timedelta64s (even as a return value from max, which
|
I guess that max() and min() are not implementing yet fully:
The text was updated successfully, but these errors were encountered: