Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Subtracting Series of Timestamps gives wrong result #2629
Comments
|
Is this on NumPy 1.6.x? |
asadovsky
commented
Jan 3, 2013
|
Yep: |
changhiskhan
referenced
this issue
Jan 3, 2013
Closed
BUG: Series op with datetime64 values misbehaves in numpy 1.6 #2629 #2630
changhiskhan
was assigned
Jan 20, 2013
wesm
closed this
Jan 20, 2013
changhiskhan
was unassigned
by wesm
Oct 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
asadovsky commentedJan 3, 2013
Example:
In [11]: d0 = pd.to_datetime(pd.Series(["12/1/2011"]))
In [12]: d1 = pd.to_datetime(pd.Series(["12/3/2011"]))
In [13]: d1[0] - d0[0]
Out[13]: datetime.timedelta(2)
In [14]: (d1 - d0)[0]
Out[14]: 2000 days, 0:00:00