Skip to content

BUG: inconsisten multi-level indexing when levels are dropped #10521

Closed
@feldman4

Description

@feldman4

DF.loc['A', :, 1] returns a DataFrame with the full MultiIndex if the second level has more than one entry, and a truncated index if the second level has only one entry (same as, e.g., DF.loc['A',0,1]). Is this the intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselvesMultiIndex

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions