-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
NaT in TimedeltaIndex + Timestamp overflows #17991
Comments
Interestingly enough, this appears to work for 1970 and onwards: In [19]: pd.to_timedelta(['24658 days 11:15:00', 'NaT']) + pd.Timestamp('1970-01-01')
Out[19]: DatetimeIndex(['2037-07-06 11:15:00', 'NaT'], dtype='datetime64[ns]', freq=None)
In [20]: pd.to_timedelta(['24658 days 11:15:00', 'NaT']) + pd.Timestamp('1969-12-31')
---------------------------------------------------------------------------
OverflowError: Overflow in int64 addition |
this is a duplicate issue - if u would have a look for the match |
Straightforward fix in |
jbrockmendel
added a commit
to jbrockmendel/pandas
that referenced
this issue
Oct 29, 2017
WIP filling out a test matrix of arithmetic ops closes pandas-dev#17991
This was referenced Oct 29, 2017
jreback
pushed a commit
that referenced
this issue
Nov 4, 2017
1kastner
pushed a commit
to 1kastner/pandas
that referenced
this issue
Nov 5, 2017
jbrockmendel
added a commit
to jbrockmendel/pandas
that referenced
this issue
Nov 6, 2017
No-Stream
pushed a commit
to No-Stream/pandas
that referenced
this issue
Nov 28, 2017
TomAugspurger
pushed a commit
to TomAugspurger/pandas
that referenced
this issue
Dec 11, 2017
…andas-dev#18020) closes pandas-dev#17991 (cherry picked from commit 8388a47)
TomAugspurger
pushed a commit
that referenced
this issue
Dec 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
pandas=0.20.3
.Adding a NaT in a TimedeltaIndex to a Timestamp results in an OverflowError:
But
NaT
should actually be masked out instead. This doesn't overflow when adding the individual scalars:xref pydata/xarray#1662
The text was updated successfully, but these errors were encountered: