Skip to content

MultiIndex.from_product() should accept Index or Series as arguments #1249

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

Open
Dr-Irv opened this issue Jun 13, 2025 · 0 comments
Open

MultiIndex.from_product() should accept Index or Series as arguments #1249

Dr-Irv opened this issue Jun 13, 2025 · 0 comments

Comments

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Jun 13, 2025

Describe the bug
MultiIndex.from_product() should accept Index or Series as arguments

To Reproduce

import pandas as pd

mi = pd.MultiIndex.from_product([["x", "y"], df.columns])
mi = pd.MultiIndex.from_product([["x", "y"], pd.Series([1, 2])])

Both of the above don't get past pyright.

Please complete the following information:

  • OS: Windows 11
  • python version: 3.10
  • pyright 1.1.400
  • in the dev copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant