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