I have a dataframe in Panda with the number of cows stolen per Year :
stolen_each_year = data[['stolen cows','year_of_date' ]]
I would like to remove all Duplicate years and keep just one with the sum of all.
I have an idea with a python function but I am trying to use the panda at the maximum
Thank You for your time
EDIT : I tried with the .groupby method but it does not seem to work fine