pandas filter rows that contain string code example Example: pandas filter string contain df[df['A'].str.contains("hello")]