Skip to content

Conversation

dsaxton
Copy link
Contributor

@dsaxton dsaxton commented Sep 14, 2020

@dsaxton dsaxton added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode MultiIndex labels Sep 14, 2020
@dsaxton dsaxton added this to the 1.1.3 milestone Sep 14, 2020
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`.
Copy link
Member

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)

@jreback jreback merged commit b53fa14 into pandas-dev:master Sep 15, 2020
@jreback
Copy link
Contributor

jreback commented Sep 15, 2020

thanks @dsaxton yeah this must have been some leftover code from when the warning was removed.

@dsaxton dsaxton deleted the multiindex-columns-same-name branch September 15, 2020 22:39
@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 16, 2020
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request Sep 17, 2020
simonjayhawkins pushed a commit that referenced this pull request Sep 19, 2020
…es (#36396)

Co-authored-by: Daniel Saxton <2658661+dsaxton@users.noreply.github.com>
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.stack does not work when MultiIndex had duplicated names

3 participants