concatenate two columns pandas and put it at position 0 code example Example: python merge strings in columns df["period"] = df["Year"].astype(str) + df["quarter"]