Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
From pandas 2.0.0, DataFrameGroupBy.sum also works for string type columns:
>>> psdf A B C D 0 1 3.1 a True 1 2 4.1 b False 2 1 4.1 b False 3 2 3.1 a True >>> psdf.groupby("A").sum().sort_index() B D A 1 7.2 1 2 7.2 1 >>> psdf.to_pandas().groupby("A").sum().sort_index() B C D A 1 7.2 ab 1 2 7.2 ba 1
Attachments
Issue Links
- links to