how to select rows in dataframe where string contains another string code example Example: pandas filter string contain df[df['A'].str.contains("hello")]