I have a pandas dataframe like this:
and I need to know if city
appears in the list in citylist
(ignoring case).
I've tried to use apply
like this, but can't figure out the correct syntax:
df.apply(lambda x: x['city'].lower() in x['citylist'])