I have a df1/dic like below:
Station_to    Station_from      Distance_km
A                AA               1.1
A                BB               2.2
A                CC               3.3
B                AA               4.4
...
a df2 like below:
Origin    Destination      
A          CC
A          DD
B          AA
...
And I want to creat a new column ['Distance'] in df2, and match origin and destination with df1/dic.
The ideal outcome would like below:
Origin    Destination      Distance
A          CC               3.3
A          DD               Nan
B          AA               4.4
...
Can anyone help me? Thank you.
 
     
    