title: python numpy split array into unequal subarrays
body: <p>I am trying to split an array into n parts. Sometimes these parts are of the same size, sometimes they are of a different size.</p>
  
  <p>I am trying to use:</p>
  
  <pre><code>split = np.split(list, size)
  </code></pre>
  
  <p>This works fine when size divides equally into the list, but fails otherwise. Is there a way to do this which will 'pad' the final array with the extra 'few' elements?</p>