title: Assign Batch to rows of CSV
body: <p>I have following data in CSV:</p>
  <pre class="lang-none prettyprint-override"><code>zipcode,name,type,counts
  1234,alex,update,23
  2134,harry,update,17
  1135,tom,update,78
  1136,helen,update,82
  1175,jack,update,98
  6987,ben,update,110
  7123,peter,update,109
  1126,jill,update,82
  1195,parker,update,98
  6587,edward,update,110
  7013,dani,update,109
  1013,jeff,update,88
  </code></pre>
  <p>What I am trying to achieve is set a batch number 1 to 5 to each row such that we will have near about equal sum of counts in each batch. <strong>What should be the optimal approach?</strong></p>
  <p>Result output:</p>
  <pre class="lang-none prettyprint-override"><code>zipcode,name,type,counts,batch
  1234,alex,update,23,b1
  2134,harry,update,17,b1
  1135,tom,update,78,b1
  1136,helen,update,82, b1
  1175,jack,update,98, b2
  6987,ben,update,110,b2
  7123,peter,update,109,b3
  1126,jill,update,82,b3
  1195,parker,update,98,b4
  6587,edward,update,110,b4
  7013,dani,update,109,b5
  1013,jeff,update,88,b5
  </code></pre>