title: Python access and iterate over values in dataframe that includes a list
body: <p>I have a dataset of newspaper articles that looks like this:</p>
  <pre><code>data =  [[1, &quot;Blah blah blah&quot;, ['according to','says']],
           [2, &quot;Blah blah blah&quot;, ['','']],
           [3, &quot;Blah blah blah&quot;, ['acknowledges']]]
  df = pd.DataFrame(data)
  df.columns = ['id', 'text', 'words']
  </code></pre>
  <p>Obviously the column <code>df['text']</code> has the real text of the article.</p>
  <p>I would like to iterate over <code>df['words']</code> and delete the word from the list once it has been found in <code>df['text']</code>.</p>
  <p>Can someone please show me to iterate over the list in the dataframe ? I was thinking of using the <code>apply()</code> function.</p>
  <p>Thanks in advance for your time.</p>