how to combine columns in dataframe code example Example: merge two columns pandas df["period"] = df["Year"] + df["quarter"]