str.contains or operator code example
Example 1: dataframe column contains string
df[df['A'].str.contains("hello")]
Example 2: re contains
fullstring = "StackAbuse"
substring = "tack"
if substring in fullstring:
print "Found!"
else:
print "Not found!"