Subtracting Series of Timestamps gives wrong result #2629

Closed
asadovsky opened this Issue Jan 3, 2013 · 2 comments

Comments

Projects
None yet
3 participants

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

Owner

wesm commented Jan 3, 2013

Is this on NumPy 1.6.x?

Yep:
numpy.version.version prints '1.6.1'
pandas.version.version prints '0.10.0'

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