BUG: datetime ops with non-unique indexes is buggy #8363

Closed
jreback opened this Issue Sep 22, 2014 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

jreback commented Sep 22, 2014

from SO

In [3]:       df = DataFrame({'A' : np.arange(5), 'B' : np.arange(1,6)},index=[2,2,3,3,4])

In [4]:   df.B-df.A
Out[4]: 
2    1
2    1
3    1
3    1
4    1
dtype: int64

In [5]:        df = DataFrame({'A' : date_range('20130101',periods=5), 'B' : date_range('20130101 09:00:00', periods=5)},index=[2,2,3,3,4])

In [6]:   df.B-df.A
Out[6]: 
2     0 days 09:00:00
2   -1 days +09:00:00
2     1 days 09:00:00
2     0 days 09:00:00
3     0 days 09:00:00
3   -1 days +09:00:00
3     1 days 09:00:00
3     0 days 09:00:00
4     0 days 09:00:00
dtype: timedelta64[ns]

jreback added this to the 0.15.0 milestone Sep 22, 2014

bgbg commented Sep 22, 2014

jreback: you are awom

jreback closed this in #8364 Sep 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment