Panel partial index is transposed when minor_index is MultiIndex #11369
Labels
Indexing
Related to indexing on series/frames, not to indexes themselves
MultiIndex
Needs Discussion
Requires discussion from core team before further action
I can index a Panel to get a data frame, e.g. by major_axis:
But if I do the same index when the minor_axis is a MultiIndex the resulting data frame is unexpectedly transposed:
Actually I think the second behaviour is closer to what I expect - the items axis becomes dimension 0 of the DataFrame. But whichever is used, we should have stability, especially if 1-item MultiIndex objects automatically become Index objects.
The text was updated successfully, but these errors were encountered: