merge two columns dataframe code example
Example 1: how to merge two dataframes
df_merge_col = pd.merge(df_row, df3, on='id')
df_merge_col
Example 2: merge two columns pandas
df["period"] = df["Year"] + df["quarter"]
df_merge_col = pd.merge(df_row, df3, on='id')
df_merge_col
df["period"] = df["Year"] + df["quarter"]