grupa Pandas Python przez jedną kolumnę i suma inna kolumna

df.groupby(['A','C'], as_index=False)['B'].sum()
Panicky Pony