-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
ENH: Add Series method to explode a list-like column #27267
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ed949ae
[ENH] Add DataFrame method to explode a list-like column (GH #16538)
changhiskhan 959ed4c
move to Series
jreback 1e4b4bd
handle generic list-like
jreback ef9eae8
lint on asv
jreback 790f06e
move is_list_like to cython and share impl
jreback d8e4801
moar docs
jreback f055b48
test larger sides to avoid a segfault
jreback bd854ca
fix ref
jreback 774d285
typos
jreback 854a2af
benchmarks wrong
jreback c4d1bd3
add inversion
jreback 01edb45
add usecase
jreback af05813
cimport is_list_like
jreback 84e1996
use cimports
jreback 040ba2e
doc-string
jreback 93b1fd6
docs & lint
jreback fdafb0c
isort
jreback b47e68d
clean object check & update doc-strings
jreback 9856732
lint
jreback 0fa9c0d
test for nested
jreback c426627
better test
jreback 9d20b61
try adding frame
jreback 5512e29
test for nested EA
jreback dc17ef6
lint
jreback 94f319e
remove multi subset support
jreback b9d8a42
update docs
jreback df0fccf
doc-string
jreback 720e309
add test for MI
jreback 26b91c4
lint and docs
jreback d51aa47
ordering
jreback f9f82fc
moar lint
jreback 5c4635f
multi-index column support
jreback 7fc2159
32-bit compat
jreback 4e7755b
moar 32-bit compat
jreback File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
[ENH] Add DataFrame method to explode a list-like column (GH #16538)
Sometimes a values column is presented with list-like values on one row. Instead we may want to split each individual value onto its own row, keeping the same mapping to the other key columns. While it's possible to chain together existing pandas operations (in fact that's exactly what this implementation is) to do this, the sequence of operations is not obvious. By contrast this is available as a built-in operation in say Spark and is a fairly common use case.
- Loading branch information
commit ed949ae05990694d800c02eaffbae34d3bf0f2a8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.