pandas merge a datagrame onto eachrow of another dataframe code example Example: combine df columns python df["period"] = df["Year"] + df["quarter"]