Skip to content

BUG: not dropping scalar-indexes MultiIndex levels #42319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

There are a bunch of issues about inconsistent dropping of MultiIndex levels: #12827, #18631, #10552, #42102, #41416, none of which are closed by this.

@jbrockmendel jbrockmendel added Bug Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex labels Jun 30, 2021
@jreback
Copy link
Contributor

jreback commented Jul 1, 2021

hmm this doesn't appear to be user facing?

@jbrockmendel
Copy link
Member Author

hmm this doesn't appear to be user facing?

in test_loc_getitem_drops_levels_for_one_row_dataframe this causes us to drop levels that are retained in master

@jreback jreback added this to the 1.4 milestone Jul 4, 2021
@jreback jreback merged commit 96f01ac into pandas-dev:master Jul 4, 2021
@jbrockmendel jbrockmendel deleted the ref-get_label-noslices branch July 4, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants