Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: Series.iloc[[-1]] error when Series is of length 1 #10547
Comments
|
I think the test should be |
jreback
added Bug Indexing
labels
Jul 12, 2015
jreback
added this to the
0.17.0
milestone
Jul 12, 2015
jreback
referenced
this issue
Aug 13, 2015
Merged
BUG: fix bounds for negative ints when using iloc (GH 10779) #10808
jreback
closed this
in #10808
Aug 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seth-p commentedJul 11, 2015
When a
Seriesis of length one, I would expectiloc[[-1]]to produce the same result asiloc[[0]]. Howeveriloc[[-1]]produces an error, even thoughiloc[[0]]andiloc[-1]work.