join 2 dataframes by index code example
Example 1: joins in pandas
pd.merge(product,customer,how='inner',left_on=['Product_ID','Seller_City'],right_on=['Product_ID','City'])
Example 2: joins in pandas
pd.merge(product,customer,on='Product_ID')
pd.merge(product,customer,how='inner',left_on=['Product_ID','Seller_City'],right_on=['Product_ID','City'])
pd.merge(product,customer,on='Product_ID')