I'm giving the minimal example here for my problem,I need to merge two dataframes by ID image I should replace the class values of dataframe1 with dataframe2, I'm not able to get the result as expected , Thanks for the help in advance.
The dataframe1 is having the structure like this
image class type
img01 car png
img02 bus png
img03 bus jpg
img04 car bmp
The dataframe2 is as below
image class
img02 car
img03 bus
img04 bus
I want the dataframe as below:
image class type
img01 car png
img02 car png
img03 bus jpg
img04 bus bmp