merge 2 columns in 1 pandas code example Example: merge two columns pandas df["period"] = df["Year"] + df["quarter"]