pandas dataframe sum two column condition code example Example: sum two columns pandas sum_column = df["col1"] + df["col2"]