1# df1 as main df and use the feild from df2 and map it into df1
2
3df1.merge(df2,on='columnName',how='left')
1pd.merge(product,customer,left_on='Product_name',right_on='Purchased_Product')
1import pandas as pd
2df1 = pd.DataFrame({'lkey': ['foo', 'bar', 'baz', 'foo'],
3 'value': [1, 2, 3, 5]})
4df2 = pd.DataFrame({'rkey': ['foo', 'bar', 'baz', 'foo'],
5 'value': [5, 6, 7, 8]})
6df1.merge(df2, left_on='lkey', right_on='rkey')