I have two dataframes as follows :
item_id name item_id label
------------- -------------
11 a 11 1
11 b 12 2
12 c 13 3
13 d 14 4
14 e
14 e
I would like to assign the values of label column to the column id
on the left
dataframe.
I tried using the merge
but I guess I made a mistake while joining and not getting the expected result.
Expected result:
item_id name label
------------------------
11 a 1
11 a 1
12 b 2
13 c 3
14 d 4
14 d 4