combine two pandas dataframes by row number code example Example: combine df columns python df["period"] = df["Year"] + df["quarter"]