python filter dataframe column value if string contains \\ code example Example: dataframe column contains string df[df['A'].str.contains("hello")]