I have a data set which looks something like this.
**name** **url** **title**
Microsoft asdfgaethgaetgh Microsoft Is a big company
Apple aeiurghp iphone is a Apple product
Google iailsu Yahoo, Bing Profit Rises
I would like to use a flag where 'True' would be if the cell value of 'name' is present in the cell value of 'title'. Otherwise, 'False'
I am using something like this
df['flag'] = (df.name).isin(df.title)
But this gives all the flags as 'False', whereaas the first two flags should be 'True'
How can i take care of this?
isin? Just use theinoperator:'Microsoft' in 'Microsoft is a big company'