sum by category pandas code example Example: pandas sum group by df.groupby(['Fiscal_Year','Billing_Group'])['CHARGE_AMT'].sum()