Skip to content

concat on columns fails with multi-index when index names are not overlapping #2480

@eavidan

Description

@eavidan

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 10.15.7
  • Modin version (modin.__version__): 0.8.2
  • Python version: 3.7
  • Code we can use to reproduce: yes

Describe the problem

Using concat columns on 2 data frames with multi-index and no overlapping index names fails with ValueError: cannot join with no overlapping index names. Same operation works using pandas

Source code / logs

The following works with pandas but fails with modin

df1 = pd.DataFrame({('s1', 426, 6, -3): 210}, index=[["a"], ["b"], ["c"], ["d"]])
df2 = pd.DataFrame({('s2', 194, -3, -5): None}, index=[["x"], ["b"], ["c"], ["d"]])
df2.index.names = ['x', 'y', 'z', 'w']
merged = pd.concat([df1, df2], axis=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalPull requests and issues from people who do not regularly contribute to modinP2Minor bugs or low-priority feature requestsbug 🦗Something isn't workingpandas concordance 🐼Functionality that does not match pandas

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions