title: More efficient way to remove last N values fom np.array
body: <p>I am working with np.arrays. I am trying to remove the last n elements, where n can be also 1.</p>
  
  <pre><code>n=5
  corr=np.full(10,10)
  </code></pre>
  
  <p>Usually I use this approach with array slicing:</p>
  
  <pre><code>corr=corr[:-n]
  </code></pre>
  
  <p>But I was thinking of using np.delete to increase the performance:</p>
  
  <pre><code>np.delete(corr,range(-n,0))
  </code></pre>
  
  <p>But it doesn't work, is there any better solution compare with array slicing?
  (method able to deal also with case in which n=0, would be a point of advantage)</p>