merge 2 df on column code example Example: merge two dataframes based on column df_merge_col = pd.merge(df_row, df3, on='id') df_merge_col