combine all columns to one in df code example Example: combine df columns python df["period"] = df["Year"] + df["quarter"]