0

I am currently learning python and DataScience and was trying to make one of my report auto generate the data . However I am not sure how to apply vlookup using pandas. (Note: I dont want to merge the dataset)

Loading Data: enter image description here

First Data Set: enter image description here

Second Data Set: enter image description here

What I am trying to get is the corresponding email address and VP Name from First data Set to Second data set. So the Final data will look like this. enter image description here

Vlookup query in excel for fetching email will look like =VLOOKUP(@A:A,MasterData!A:B,2,0)

Vlookup query in excel for fetching VP name will look like =VLOOKUP(@A:A,MasterData!A:C,3,0)

Please advise how i can automate this task using pandas without using merge.

I tried using map as recommended in Pandas: how to merge two dataframes on a column by keeping the information of the first one? . However it is fetching wrong data please find the screenshot

enter image description here

0 Answers0