Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix metadata handling for
.groupby(...).sum()
In order to propagate metadata fields, the `__finalize__` method must be called for the resulting DataFrame with a reference to input. By implementing this in `_GroupBy._agg_general`, this is performed as late as possible for the `.sum()` (and similar) code-paths. Fixes #GH-29442
- Loading branch information