I want to check if a value from a column in one dataframe exists in a column of second dataframe. If it exists then add that value in a new column of the same row in second dataframe. All the values are string values. Both the dataframes are of different size. Also second dataframe has around 700K records. So the dataframes I have:
DF1
THINGS
book+pen
CAR
chair
laptop
DF2
Description
I want a new book.
I will pen down this things
A quick ride in my new car.
Cars are awesome.
My laptop's memory is bad.
Maybe try sitting on that CHAIR.
The output I want that is addition of an 'Updated' column:
Description Updated
I want a new book. book
I will pen down this things pen
A quick ride in my new car. car
Cars are awesome. car
My laptop's memory is bad. laptop
Maybe try sitting on that CHAIR. chair
Search for that book in my laptop. book+laptop
I have tried the brute method but its taking too long to process. Thanks in advance!