add columns in python the create a new column for sum of column code example Example: sum two columns pandas sum_column = df["col1"] + df["col2"]