take rows containing a string panda s apytoh[] code example Example: pandas filter string contain df[df['A'].str.contains("hello")]