I have a Pandas dataframe where I would like to compare two columns 'text' and 'text_find'.
I would like to create a Boolean flag 'compare' which is set to 1 if the words in 'text_find' are located in 'text', else set 'compare' to 0. e.g.
'text' = 'i hate cars'
'text_dins' = 'cars'
this will make 'compare' = 1
'text' = 'i hate cars'
'text_dins' = 'rabbits'
this will make 'compare' = 0
how would I do all this in a pandas dataframe?