I have a dataframe which looks like this:
Fruit Quantity
orange 4
grape 2
apple 3
grape 2
orange 1
I want to sum up the quantity column based off of the same item name in the fruit column. The desired result is :
Fruit Quantity
orange 5
apple 3
grape 4
df.groupby("Fruit").sum()