how to concatenate dataframes in python with different rows code example
Example 1: combining 2 dataframes pandas
df_3 = pd.concat([df_1, df_2])
Example 2: combine df columns python
df["period"] = df["Year"] + df["quarter"]
df_3 = pd.concat([df_1, df_2])
df["period"] = df["Year"] + df["quarter"]