I have a df with multiple columns, one of which is a string with many words(text column).
I also have a set of words, S, that I need to look for.
I want to extract the rows of the df that contain at least one word from S in its text column
df_filtered=df[df['text'].str.contains('word')]
This works for one word from the set S. Instead of looping over S, is there a better way?