Reductions for ExtensionArray · Issue #22346 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Creeping up to this in #22345
A few questions
- What should this look like for EA authors? What helpers can / should we provide?
- How does this affect users? Specifically, assuming IntegerArray implements reductions, what's the dtype here?
In [11]: df = pd.DataFrame({"A": ['a', 'b', 'a'], "B": pd.core.arrays.IntegerArray([1, 2, 3])})
In [12]: df.groupby("A").B.min().dtype
Is it int64
, or should we preserve Int64
?
We can also discuss transforms ( cumulative operations like cumsum, maybe things like .shift
).