ENH: Support reduction methods on Index(?) #50021
Labels
Enhancement
Index
Related to the Index class or subclasses
Needs Discussion
Requires discussion from core team before further action
Reduction Operations
sum, mean, min, max, etc.
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
In theory, a numeric Index could support reduction functions as a "1D list-like object" and closer align to Series in this way as well. Of course reduction functions might not make sense on some Index subclasses (
MultiIndex
,IntervalIndex
, etc)cuDF Index supports reduction functions and are considering deprecating them to align with the pandas Index API, but opening this issue to gauge whether pandas actually wants to support reduction functions on Index rapidsai/cudf#12284
Current reduction functions supported on Series:
pandas/pandas/conftest.py
Lines 1036 to 1048 in 36dcf51
Feature Description
Defining
_reduce
onIndex
which can dispatch to EA._reduce if an EA type or use ananop
method otherwise?Alternative Solutions
Additional Context
No response
The text was updated successfully, but these errors were encountered: