title: compare two columns having list of strings in pandas
body: <p>I have a data frame in pandas having two columns where each row is a list of strings, how would it be possible to check if there is word match(es) in these two columns on a unique row(flag column is the desired output)</p>
  
  <pre><code>A                B            flag
  
  hello,hi,bye     bye, also       1
  but, as well     see, pandas     0 
  </code></pre>
  
  <p>I have tried </p>
  
  <pre><code>df['A'].str.contains(df['B'])
  </code></pre>
  
  <p>but I got this error</p>
  
  <pre><code>TypeError: 'Series' objects are mutable, thus they cannot be hashed
  </code></pre>