how to concat 2 strings of columns of a dataframe in python code example Example: python merge strings in columns df["period"] = df["Year"].astype(str) + df["quarter"]