8000 BUG: Avoid duplicating entire exploded column when joining back with origi… by MarcoGorelli · Pull Request #28010 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Avoid duplicating entire exploded column when joining back with origi… #28010

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 23 commits into from
Sep 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up
  • Loading branch information
Marco Gorelli authored and MarcoGorelli committed Sep 3, 2019
commit 52ba53b73c7f831df46c3a38b15ac5eae3afe8b2
1 change: 0 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6260,7 +6260,6 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
raise ValueError("columns must be unique")

column_with_index = self[column].reset_index()

result = (
self.drop([column], axis=1)
.reset_index()
Expand Down
0