-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
BugIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Milestone
Description
per pydata email:
I created a dataframe with multi index like this:
a b c
y m d
2000 1 1 1 2 3
2 7 8 9
3 4 5 6
...
it doesn't work to do this: df.ix[(2000,1,1), ['a','b']]
it gives KeyError = 1
in _NDFrameIndexer._getitem_tuple, the return value of the first ix._getitem_axis(key, axis=i) call returns a Series so the second call with axis=1 fails with KeyError=1
Metadata
Metadata
Assignees
Labels
BugIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves