title: How can I turn a flat list into a 2D array in python?
body: <p>How can I turn a list such as:</p>
  
  <pre><code>data_list = [0,1,2,3,4,5,6,7,8,9]
  </code></pre>
  
  <p>into a array (I'm using numpy) that looks like:</p>
  
  <pre><code>data_array = [ [0,1] , [2,3] , [4,5] , [6,7] , [8,9] ]
  </code></pre>
  
  <p>Can I slice segments off the beginning of the list and append them to an empty array?</p>
  
  <p>Thanks</p>