Skip to content
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

inconsistent comparison operation results #948

Closed
adamklein opened this issue Mar 21, 2012 · 0 comments

Comments

@adamklein
Copy link
Contributor

commented Mar 21, 2012

In [4]: i = Index([1,2,3,4])

In [5]: i
Out[5]: Int64Index([1, 2, 3, 4])

In [6]: i == i
Out[6]: Int64Index([ 1, 1, 1, 1])

In [7]: i == 0
Out[7]: array([False, False, False, False], dtype=bool)

In [8]: i == 1
Out[8]: array([ True, False, False, False], dtype=bool)

In [9]: i == np.array([1,2,3,4])
Out[9]: array([ True, True, True, True], dtype=bool)

In [10]: i == Index([1,2,3,4])
Out[10]: Int64Index([ 1, 1, 1, 1])

@adamklein adamklein closed this in f58126f Mar 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.