pandas get entires that contain a string

df[df['A'].str.contains("hello")]

Here is what the above code is Doing:
1. We’re using the .str accessor to access the string methods on the column.
2. We’re using the .contains() method to check if the string “hello” is in the column.
3. We’re using the resulting boolean Series to filter the DataFrame.