pandas sum two columns into one code example
Example 1: add two column values of a datframe into one
df["period"] = df["Year"] + df["quarter"]
Example 2: sum two columns pandas
sum_column = df["col1"] + df["col2"]
df["period"] = df["Year"] + df["quarter"]
sum_column = df["col1"] + df["col2"]