title: list column in pandas if present in another list
body: <p>I have a pandas data frame in which column A has values as lists.
  the size of the data frame is 14 million rows. </p>
  
  <p>I have another list: </p>
  
  <pre><code>code = ['q23', 'r45', 'y67']
  </code></pre>
  
  <p>I want to create a new column B in the data frame if any of the values in column A are in code. </p>
  
  <pre><code>any([True if x in df.A if x in code]) doesnt work
  </code></pre>