Answers for "Sum values of column based on the unique values of another column"

0

Sum values of column based on the unique values of another column

df.groupby('Column1')['Column2'].sum()
Column1  Column2
1          44
2          65
3          30
4          18
Posted by: Guest on April-17-2021

Code answers related to "Sum values of column based on the unique values of another column"

Browse Popular Code Answers by Language