title: Make CSV file from each row
body: <p>I have a dataframe with n columns. One is the city name.</p>
  
  <p>I am trying to extract each row(s) based on city name and print each to a new CSV file.</p>
  
  <pre><code>col1  col2    cityName
  
  a       5     Madrid
  s       10    NEWYORK
  d       0     London
  f       2     Berlin
  </code></pre>
  
  <p>Answer:</p>
  
  <p><strong>first csv file:</strong></p>
  
  <pre><code>col1  col2    cityName
  
  a       5     Madrid
  </code></pre>
  
  <p><strong>second csv file:</strong></p>
  
  <pre><code>col1  col2    cityName
  s       10    NEWYORK
  </code></pre>