only sum single column from pandas dataframe using python code example Example: python groupby sum single columns df.groupby(['A','C'], as_index=False)['B'].sum()