title: How to truncate a numpy array?
body: <p>I am trying to truncate 'data' (which is size 112943) to shape (1,15000) with the following line of code: </p>
  
  <pre><code>data = np.reshape(data, (1, 15000))
  </code></pre>
  
  <p>However, that gives me the following error:</p>
  
  <pre><code>ValueError: cannot reshape array of size 112943 into shape (1,15000)
  </code></pre>
  
  <p>Any suggestions on how to fix this error?</p>