BUG: concat raises when all indexes are the same and keys are duplicated (original) (raw)

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

Details

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