This is the data I have been given:
I have been wanting to take the sum of the needed supplies with respect to their location but the groupby function does not seem to work. For example: df..groupby(['location']).sum()
However this gives the following, which is not the desired output.