title: Split dataframe into multiple df
body: <p>For example, if I have a dataframe, <strong>df</strong> like this</p>
  
  <pre><code>col1 col2 col3
   1     2     34
   11    32    32
   21    62    34
   31    12    31
   13    82    35
   11    32    33
   41    32    33
  </code></pre>
  
  <p>I want to loop 3 times and in each loop I want to take n rows one after another and in the last loop take rest of the rows. So it should take following rows in each loop</p>
  
  <p>loop 1</p>
  
  <pre><code> 1     2     34
   11    32    32
  </code></pre>
  
  <p>loop 2</p>
  
  <pre><code>21    62    34
   31    12    31
  </code></pre>
  
  <p>loop 3</p>
  
  <pre><code>13    82    35
   11    32    33
   41    32    33
  </code></pre>