combine string columns into one pandas code example Example: python merge strings in columns Click to copydf["period"] = df["Year"].astype(str) + df["quarter"]