I'm trying to split a column of my dataframe (df_example) based on a different column. I only want to get the sentences which contain the value of a different column. What is the best/cleanest way to do this in Python? In the example below I attached what I would like to see in the desired_outcome column.
Looking forward to the help.