I have to find in a nested list which list have a word and return a boolear numpy array.

```
nested_list = [['a','b','c'],['a','b'],['b','c'],['c']]
words=c
result=[1,0,1,1]

```

I'm using this list comprehension to do it and it works

```
np.array([word in x for x in nested_list])

```

But I'm working with a nested list with 700k lists inside so it takes a lot of time. Also, I have to do it a lot of times, lists are static but words can change.

1 loop with list comprehension takes 0.36s, I need a way to do it faster, is there a way to do it?