-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Milestone
Description
Panel.iloc[] doesn't index correctly given a mix of scalars and ranges
from pandas import Panel, date_range
from numpy.random import randn
p = Panel(randn(4, 4, 4))
print(p.iloc[:3, :3, :3].shape)
print(p.iloc[1, :3, :3].shape)
print(p.iloc[:3, 1, :3].shape)
print(p.iloc[:3, :3, 1].shape)
print(p.iloc[1, 1, :3].shape)
print(p.iloc[1, :3, 1].shape)
print(p.iloc[:3, 1, 1].shape)
Returns
[3, 3, 3]
(4, 3)
(4, 3)
(3, 3)
(3L,)
(4L,)
(4L,)
Metadata
Metadata
Assignees
Labels
BugIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves