Skip to content

Error with MultiIndex.from_product with list of Indexs #1258

Closed
@stephenlrandall

Description

@stephenlrandall

Describe the bug

Errors are reported with MultiIndex.from_product when using Index:

import pandas as pd

labels = ["a", "b", "c"]
index = pd.Index(labels)

display(pd.MultiIndex.from_product([labels, labels]))
display(pd.MultiIndex.from_product([index, index]))
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions