title: How do I slice a single CSV file into several smaller ones grouped by a field?
body: <p>I have large data set from the World Bank Millenium Development goals as a CSV. The data is displayed like this:</p>
  
  <pre><code>Country Code   Country Name   Indicator
  ABW            Aruba          % Forest coverage
  ADO            Andorra        % Forest coverage
  AFG            Afghanistan    % Forest coverage
  ...
  ABW            Aruba          % Literacy rate
  ADO            Andorra        % Literacy rate
  AFG            Afghanistan    % Literacy rate
  ...
  ABW            Aruba          % Another indicator
  ADO            Andorra        % Another indicator
  AFG            Afghanistan    % Another indicator
  </code></pre>
  
  <p>The file is currently 8.2MB. I'm going to program a web interface for this data, and I'd like to slice the data by country so I can make an ajax request so I can load an individual CSV for each country.</p>
  
  <p>I'm lost on how to do this programmatically or with any tool. I don't necessarily need Python but it's what I know best. I don't necessarily need a complete script, a general pointer on how to approach this problem is appreciated.</p>
  
  <p>The original data source I'm working with is located here: </p>
  
  <p><a href="http://duopixel.com/stack/data.csv" rel="nofollow">http://duopixel.com/stack/data.csv</a></p>