title: How to reshape every nth row's data using pandas?
body: <p>I need help in reshaping a data in csv file that have over 10000 row by 10 each. For example I have this csv file :</p>
  
  <pre><code>Ale Brick
  1   ww
  2   ee
  3   qq
  3   xx
  5   dd
  3   gg
  7   hh
  8   tt
  9   yy
  0   uu
  1   ii
  2   oo
  3   pp
  4   mm
  1   ww
  7   zz
  1   cc
  3   rr
  6   tt
  9   ll
  </code></pre>
  
  <p>What I am hoping to get is this form where only data in 'Brick' column will be reshaped.</p>
  
  <pre><code>[['ww' 'ee' 'qq' 'xx' 'dd']
   ['gg' 'hh' 'tt' 'yy' 'uu']]
  
  [['ii' 'oo' 'pp' 'mm' 'ww']
   ['zz' 'cc' 'rr' 'tt' 'll']]
  </code></pre>
  
  <p>I know how to reshape the data from 0 until 9th row only but did not know how to do it for next 10th row. Here is my script :</p>
  
  <pre><code>import pandas as pd
  
  df = pd.read_csv("test.csv")
  
  for i in range(0, len(df)):
      slct = df.head(10)
      result = slct['Brick'].reshape(2,5)
  
  print result
  </code></pre>
  
  <p>This script only print the following result</p>
  
  <pre><code>[['ww' 'ee' 'qq' 'xx' 'dd']
   ['gg' 'hh' 'tt' 'yy' 'uu']]
  </code></pre>
  
  <p>I was hoping for it to print the data from 0 to 9th row, 10th to 19th row, 20th row to 29th row and so on...</p>
  
  <p>I have been through the pandas tutorial but did not find any example that looks similar to what I want.</p>
  
  <p>Thank you for your help</p>