pandas combine values of rows into one code example Example: combine df columns python df["period"] = df["Year"] + df["quarter"]