histogram sum of a column depending on other one pandas code example Example: sum two columns pandas sum_column = df["col1"] + df["col2"]