-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
SeriesGroupby.cumsum raises on object dtype #13992
Comments
I guess, we had some discussion we should actually remove this behavior for see #13416 |
From #13416 (comment)
|
|
The obvious attempt to obtain
using
raises a
DataError: No numeric types to aggregate
. A workaround is available viaSeriesGroupby.cumsum
should follow the behavior ofSeriesGroupby.sum
, where boths.groupby(grouper).apply(pd.Series.sum)
ands.groupby(grouper).sum()
produce the correct output:This was introduced some time between 0.15.2 and 0.18.1, as observed here.
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: