how to select the whole row of particular string with regular expression in python code example Example: pandas filter string contain df[df['A'].str.contains("hello")]