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