You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace _make_aggop with Explicit Aggregation Method Definitions #5307
The internal helper _make_aggop is currently used to dynamically generate aggregation methods (e.g., sum, mean, max, min) on Series and DataFrame. This ticket proposes replacing that mechanism with explicit, statically defined aggregation methods.
Motivation
While _make_aggop reduces code repetition, it introduces several drawbacks:
Obscures the public API and makes available methods harder to discover
Complicates static analysis, type checking, and IDE support
Makes docstring generation and documentation consistency harder to maintain
Increases cognitive overhead when tracing behavior during debugging or review
Replacing dynamic method generation with explicit method definitions improves readability, tooling support, and long-term maintainability.
Scope
Remove or deprecate _make_aggop in Series and DataFrame
Activity
[-]replace _make_aggop[/-][+]Replace `_make_aggop` with Explicit Aggregation Method Definitions[/+]Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes Bears-R-Us#5307: Replace _make_aggop with Explicit Aggregation…
Closes #5307: Replace _make_aggop with Explicit Aggregation Method De…