pandas create a new column in existing dataframe with sum code example Example: sum two columns pandas sum_column = df["col1"] + df["col2"]