1# if both columns are strings, you can concatenate them directly
2df["period"] = df["Year"] + df["quarter"]
3
4# If one (or both) of the columns are not string typed, you should convert it
5# (them) first,
6df["period"] = df["Year"].astype(str) + df["quarter"]