8000 BUG: DataFrameGroupBy with numeric_only and empty non-numeric data by jbrockmendel · Pull Request #41706 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: DataFrameGroupBy with numeric_only and empty non-numeric data #41706

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 12 commits into from
Jun 2, 2021
Merged
Prev Previous commit
Next Next commit
mypy fixup
  • Loading branch information
jbrockmendel committed May 6, 2021
commit 5dda642d69e79ac6d1310ba5b3eff58be440c44f
5 changes: 2 additions & 3 deletions pandas/core/internals/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,8 @@ def _combine(
axes = [self.items[:0], index]
else:
axes = [self.items[:0]] + self.axes[1:]
else:
axes = None
return self.make_empty(axes)
return self.make_empty(axes)
return self.make_empty()

# FIXME: optimization potential
indexer = np.sort(np.concatenate([b.mgr_locs.as_array for b in blocks]))
Expand Down
0