Having the following dataframe:
A   | B
--------
abc | 5
def | 2
abc | 4
ghi | 2
def | 1
How can I sum B grouping by A?
Sample output:
A   | B
--------
abc | 9
def | 3
ghi | 2
Thanks!
Having the following dataframe:
A   | B
--------
abc | 5
def | 2
abc | 4
ghi | 2
def | 1
How can I sum B grouping by A?
Sample output:
A   | B
--------
abc | 9
def | 3
ghi | 2
Thanks!
