-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Multi-Column explode #39240
Labels
Milestone
Comments
lschwetlick
added
Enhancement
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Jan 17, 2021
It could be done something like this |
lithomas1
added
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
and removed
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Feb 23, 2021
iynehz
added a commit
to iynehz/pandas
that referenced
this issue
Jun 16, 2021
iynehz
added a commit
to iynehz/pandas
that referenced
this issue
Jun 17, 2021
iynehz
added a commit
to iynehz/pandas
that referenced
this issue
Jun 17, 2021
iynehz
added a commit
to iynehz/pandas
that referenced
this issue
Jun 20, 2021
iynehz
added a commit
to iynehz/pandas
that referenced
this issue
Jun 20, 2021
jreback
pushed a commit
that referenced
this issue
Jun 21, 2021
neinkeinkaffee
pushed a commit
to neinkeinkaffee/pandas
that referenced
this issue
Jun 21, 2021
JulianWgs
pushed a commit
to JulianWgs/pandas
that referenced
this issue
Jul 3, 2021
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
I have often looked for the option to use the
explode
function on multiple columns at the same time.Example:
===>
For obvious reasons exploding first one and then the other column will not yield the result we want here, because we will end up duplicating the values in the first explode during the second explode.
Describe the solution you'd like
Either it could be
df.explode(["C","D"])
or it could be its own functiondf.multi_explode(["C","D"])
. Both ways could use more or less the same method that the existing explode function uses.API breaking implications
The only issue I see with this are cases where the lists in the C and D column aren't the same length, in which case we would need to pad them.
Context
I don't know if this has been discussed previously, but if there is interest in this a Pull request concerning this feature I could try to implement it.
The text was updated successfully, but these errors were encountered: