python search for word is in column

df[df.column.str.contains("word")]

Here is what the above code is Doing:
1. We’re using the .str accessor on the column column.
2. We’re using the .contains() method to check if the column contains the word “word”.
3. We’re using the result of that to filter the dataframe.