Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
Inconsistency between behavior of cumsum() when applied directly, and when applied within groupby().
When used directly on a column of a dataframe that contains lists, cumsum() progressively concatenates the lists.
When used as part of groupby() on the same dataframe cumsum() throws "NotImplementedError: function is not implemented for this dtype: [how->cumsum,dtype->object]"
Expected Behavior
I'd expect cumsum() to progressively concatenate the lists of all rows within each group defined by groupby(), in a way similar to what it does with numeric values.
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
Inconsistency between behavior of cumsum() when applied directly, and when applied within groupby(). When used directly on a column of a dataframe that contains lists, cumsum() progressively concatenates the lists. When used as part of groupby() on the same dataframe cumsum() throws "NotImplementedError: function is not implemented for this dtype: [how->cumsum,dtype->object]"
Expected Behavior
I'd expect cumsum() to progressively concatenate the lists of all rows within each group defined by groupby(), in a way similar to what it does with numeric values.
Installed Versions