-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
MultiIndexNeeds InfoClarification about behavior needed to assess issueClarification about behavior needed to assess issue
Description
I am developing some code that derives various pandas classes, and I have stumbled what seems to me like a bug. I do not have too much experience with pandas, so pardon me if this is obviously wrong.
In function maybe_droplevels
from the multiindex
file, lines 3878 and 3884 disregard the content of key
and directly drop the top-most level. It has been like that for at least some years. I am not sure if this was by design in the beginning, to avoid issues, but after a brief look I cannot find the reason why it is would not possible to drop only the level where key
is.
My code derives MultiIndex
, and when I return a slice that shrinks the DataFrame size, line 3463 wants to shrink the size of the index too.
Metadata
Metadata
Assignees
Labels
MultiIndexNeeds InfoClarification about behavior needed to assess issueClarification about behavior needed to assess issue