-
Notifications
You must be signed in to change notification settings - Fork 1
adding explode #327
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
adding explode #327
Conversation
This reverts commit ac37d6f.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #327 +/- ##
==========================================
+ Coverage 98.08% 98.10% +0.02%
==========================================
Files 18 18
Lines 1722 1742 +20
==========================================
+ Hits 1689 1709 +20
Misses 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Click here to view all benchmarks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just two requests!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Only minor suggestions on wording in the docstring.
Change Description
Added the
explode()
function extension to work for nested structure. In addition to regular explode on the base columns, the extension includes "unnesting" single nested column by expanding it.Solution Description
Extending the
explode
function to work for nested frame.Currently, the function only support single nested column explosion. If the given
column
includes multiple nested columns or includes a mix of nested column and base column, anValueError
will be raised. The exploded nest columns will be added to the right of the rest of the frame with a join. Nested column names are prefixed with <nested_col>. for clarity.Apply the super().explode() on base columns for regular pandas' explode.
Code Quality
Project-Specific Pull Request Checklists
New Feature Checklist