I have a pandas DataFrame with a column 'categories'. That column has list as elements and each list contains some words. I want to find in how many lists the words "pizza" or "Italian" appear. The columns look like:
I tried the code below, but I am getting everything as False
.
business.categories.apply(lambda x: ('pizza' in x) or ("Italian" in x))