how to create a series in pandas by combining column code example Example: merge two columns pandas df["period"] = df["Year"] + df["quarter"]