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

iat, iloc don't work with no unique index #6493

Closed
zhangruoyu opened this issue Feb 27, 2014 · 1 comment · Fixed by #6495
Closed

iat, iloc don't work with no unique index #6493

zhangruoyu opened this issue Feb 27, 2014 · 1 comment · Fixed by #6495
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@zhangruoyu
Copy link

import pandas as pd

s = pd.Series(range(5), index=[1,1,2,2,3])
s.iat[2]

which returns array([2, 3], dtype=int64), I think the result should be 2.

s.iloc[2] works, but s.iloc[[2, 3]] raise error.

@jreback
Copy link
Contributor

jreback commented Feb 27, 2014

thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants