how to name a sum column in pandas code example Example: sum of a column in pandas Total = df['MyColumn'].sum() print (Total) 319