Pandy dodają dwie kolumny łańcuchowe
# if both columns are strings, you can concatenate them directly
df["period"] = df["Year"] + df["quarter"]
# If one (or both) of the columns are not string typed, you should convert it
# (them) first,
df["period"] = df["Year"].astype(str) + df["quarter"]
Trained Tuna