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
DataFrameGroupBy.cumcount() returns a Series while most others (the ones I tested, like count, cumsum, first, sum ) return a DataFrame. They are maybe not all comparable, but at least with cumsum it could be I think:
Ah, yes. Indeed, that way it is logical!
And also g.size() does return a Series, which is similar (and because of the g.count being equal for all columns, I didn't thought of NaNs influencing the result).
@hayd
DataFrameGroupBy.cumcount()
returns a Series while most others (the ones I tested, like count, cumsum, first, sum ) return a DataFrame. They are maybe not all comparable, but at least withcumsum
it could be I think:The text was updated successfully, but these errors were encountered: