pandas set column as combination of two others code example Example: merge two columns pandas df["period"] = df["Year"] + df["quarter"]