Timestamp equality broadcasts incorrectly #11034

Closed
jcrist opened this Issue Sep 9, 2015 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

jcrist commented Sep 9, 2015

Always returns true for equality and inequality:

In [168]: t = pd.Timestamp('2000-01-29 01:59:00')

In [169]: a = pd.Series([t])

In [170]: b = pd.Series([t])

In [171]: a
Out[171]:
0   2000-01-29 01:59:00
dtype: datetime64[ns]

In [172]: a == b
Out[172]:
0    True
dtype: bool

In [173]: a != b
Out[173]:
0    True
dtype: bool

In [174]: t == t
Out[174]: True

In [175]: t != t
Out[175]: False

cpcloud added this to the 0.17.0 milestone Sep 9, 2015

Member

cpcloud commented Sep 9, 2015

I'm tracking this down.

cpcloud self-assigned this Sep 9, 2015

Contributor

jreback commented Sep 9, 2015

hmm, this should work......2 big changes in 0.17....comparisions vs None and datetime with tz, both touched core/ops a lot

Contributor

jreback commented Sep 9, 2015

closed by #11036

jreback closed this Sep 9, 2015

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