title: How to Create a Numpy Array from an existing Numpy Array
body: <p>I am looking to take an existing numpy array and create a new array from the existing array but at start and end from values from the existing array?</p>
  
  <p>For example:</p>
  
  <pre><code>arr = np.array([1,2,3,4,5,6,7,8,9,10])
  
  def split(array):
      # I am only interested in 4 thru 8 in original array
      return new_array
  
  &gt;&gt;&gt;new_array
  &gt;&gt;&gt; array([4,5,6,7,8])
  </code></pre>