pandas merge on multiple columns with column name and values into one column code example
Example: add two column values of a datframe into one
df["period"] = df["Year"] + df["quarter"]
df["period"] = df["Year"] + df["quarter"]