title: How can I generate an array based on the grouped values of another array in Numpy?
body: <p>Lets say I have the following array:</p>
  <pre><code>`Z = [1,2,3,4,5,6,7,8,9,10,11,12,13,14]`
  </code></pre>
  <p>I want to generate  an array  that looks like this:</p>
  <pre><code>R = [[1,2,3,4], [2,3,4,5], [3,4,5,6], ..., [11,12,13,14]]
  </code></pre>
  <p>How can this be done with NumPy?</p>