pd join left on right on code example
Example 1: merge on index pandas
pd.merge(df1, df2, left_index=True, right_index=True)
Example 2: joins in pandas
pd.merge(product,customer,left_on='Product_name',right_on='Purchased_Product')
pd.merge(df1, df2, left_index=True, right_index=True)
pd.merge(product,customer,left_on='Product_name',right_on='Purchased_Product')