how to find if column contains a character in string pandas code example Example: dataframe column contains string df[df['A'].str.contains("hello")]