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