Why an extra level is included when using expand_grid and a dictionary? #1373
-
I want to know why an extra level is included when using Minimal reproducible exampledata = {"x": [1, 2, 3], "y": [1, 2]}
expand_grid(others=data) Actual behavior
Expected behavior
Settings
|
Beta Was this translation helpful? Give feedback.
Answered by
samukweku
Jul 4, 2024
Replies: 2 comments 2 replies
-
hi @luifrancgom and apologies for the late reply. A PR is in the works to change this - a MultiIndex will be created only if necessary. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ok. Solved with #1383 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is the relevant PR