human
Pandas sum by groupby, but exclude certain columns
assistant
Here is some code to get sum of values of columns  'Y1961', 'Y1962', 'Y1963' after group by on columns "Country" and "Item_code" in dataframe `df`.

df.groupby(['Country', 'Item_Code'])[['Y1961', 'Y1962', 'Y1963']].sum()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.