get column value that has part of a word in it in pandas df code example Example: dataframe column contains string df[df['A'].str.contains("hello")]