how to merge 3 columns data by pandas code example Example: merge two columns pandas df["period"] = df["Year"] + df["quarter"]