title: Iterate over list of dataframes and drop specific rows
body: <p>I have a list of dataframes:</p>
  
  <pre><code>list = [a, b, c, d, e ,f]
  </code></pre>
  
  <p>Each of these dataframes has a column called 'PEOPLE', and I want to loop through this list and drop any rows in any of the data frames where the value in 'PEOPLE' is one of the values in another list: </p>
  
  <p><code>people_to_drop = ['PERSON ABC','PERSON DEF']</code></p>
  
  <p>I've been trying the following method:</p>
  
  <pre><code>for index,item in enumerate(list):
       list[index] = item[~item['PEOPLE'].isin(people_to_drop)].copy()
  </code></pre>
  
  <p>However, when I check the datasets after the for loop has run, they don't seem to have dropped the rows I want dropped. Is there a better way to do this? Thanks in advance!</p>