check if a char is in a list code example
Example 1: if string is in array python
if item in my_list:
# whatever
Example 2: padnas check if string is in list of strings
print frame[frame['a'].isin(mylist)]
if item in my_list:
# whatever
print frame[frame['a'].isin(mylist)]