title: Python retrieve specific rows from a csv file
body: <p>I'm trying to retrieve specific rows from my csv file and than to create a new csv file form them. The rows I'm retrieving must contain the same value present into a list.</p>
  
  <pre><code>myList=[HELLO, WORLD, DAD]
  
  csv_file=      doc_01 | doc_02 | doc_03 | doc_04 |
           HELLO| 0,002 | 0,8    | 00,5   | 0,003  |
           WORLD| 0,1   | 00,9   | 1,2    | 2,1    |
           MOM  | 00,3  | 00,7   | 0,22   | 0,55   |
  </code></pre>
  
  <p>My intention is to iterate over the list and, if the value in the list is in the first column of the csv I want to take all the corrisponding row.</p>
  
  <p>The result should be like:</p>
  
  <pre><code>new_csv=       doc_01 | doc_02 | doc_03 | doc_04 |
           HELLO| 0,002 | 0,8    | 00,5   | 0,003  |
           WORLD| 0,1   | 00,9   | 1,2    | 2,1    |
  </code></pre>
  
  <p>Is there a way to do it?</p>