title: How to split 1D array into 2D array in NumPy by splitting the array at the last element?
body: <p>I have a numpy array, say</p>
  
  <pre><code> ([1,2,3,4,5,6,7])
  </code></pre>
  
  <p>I want to split it into a 2d array such that the last element is in its own array, like this</p>
  
  <pre><code> ([1,2,3,4,5,6],[7])
  </code></pre>
  
  <p>How exactly would I do this?</p>