how to do left join in pandas code example Example: python: left join new_df = df_1.merge(df_2, on='id', how='left', indicator=True)