how to find the sum of three columns pandas code example
Example 1: python column = sum of list of columns
list_of_my_columns = ['Col A', 'Col E', 'Col Z']
df['Sum'] = df[list_of_my_columns].sum(axis=1)
Example 2: sum two columns pandas
sum_column = df["col1"] + df["col2"]