-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix MultiIndex column stacking with dupe names #36371
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
BUG: Fix MultiIndex column stacking with dupe names #36371
Conversation
when columns do not have names, in which case we must leave as a level | ||
number | ||
to swaplevel. If `level_num` matches a column name return the name from | ||
position `level_num`, otherwise return `level_num`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general the first line of a docstring should be a one -liner. see https://numpydoc.readthedocs.io/en/latest/format.html#sections
(for internal functions, imo we could follow less strict guidelines, see #32773)
thanks @dsaxton yeah this must have been some leftover code from when the warning was removed. |
@meeseeksdev backport 1.1.x |
…es (#36396) Co-authored-by: Daniel Saxton <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff