Skip to content

BUG: concat raises when all indexes are the same and keys are duplicated #43595

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

Closed
3 tasks done
rhshadrach opened this issue Sep 16, 2021 · 0 comments · Fixed by #43596
Closed
3 tasks done

BUG: concat raises when all indexes are the same and keys are duplicated #43595

rhshadrach opened this issue Sep 16, 2021 · 0 comments · Fixed by #43596
Assignees
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@rhshadrach
Copy link
Member

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

keys = ["e", "e"]
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
result = pd.concat([df, df], axis=1, keys=keys)

Issue Description

concat raises when all the indexes of objs argument are the same and there are duplicates in the keys argument.

Expected Behavior

Not to raise.

Installed Versions

Replace this line with the output of pd.show_versions()

@rhshadrach rhshadrach added Bug Needs Triage Issue that has not been reviewed by a pandas team member Reshaping Concat, Merge/Join, Stack/Unstack, Explode and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 16, 2021
@rhshadrach rhshadrach self-assigned this Sep 16, 2021
@rhshadrach rhshadrach added this to the Contributions Welcome milestone Sep 16, 2021
@jreback jreback modified the milestones: Contributions Welcome, 1.4 Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants