Skip to content

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 11, 2022

We have basically three options:

  • raising when level is specified without a MultiIndex (would have to deprecate probably, because if self equals target this works currently)
  • just ignoring level
  • checking if index.name == level when no MultiIndex is given

@jreback jreback added this to the 1.5 milestone Mar 11, 2022
@jreback jreback merged commit be81ae0 into pandas-dev:main Mar 11, 2022
@jreback
Copy link
Contributor

jreback commented Mar 11, 2022

this is reasonable

@phofl phofl deleted the 35132 branch June 6, 2022 20:51
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Passing level= to DataFrame.reindex fails when the index is flat
2 participants