I a dataframe (xlsx file) in the form: (this dataframe has 152069 rows).
Source | Target |
---|---|
DORTMUND | ANTWERP |
MUMBAI | SPIJKENISSE |
XIOALAN | BEILUN |
ETTRINGEN | BREMERHAVEN |
HILTER | BREMERHAVEN |
and I also have another dataframe with the Ids and Names: (this dataframe has 10200 rows with unique id's for each name).
ID | Name |
---|---|
2678 | DORTMUND |
6049 | MUMBAI |
9873 | XIOALAN |
3014 | ETTRINGEN |
4055 | HILTER |
338 | ANTWERP |
8323 | SPIJKENISSE |
824 | BEILUN |
1272 | BREMERHAVEN |
I would like to replace the data of the first dataframe with their appropriate id (in the second dataframe). Do you have any suggestions on how to do this? Thank you in advance.