title: Fill in values between given indices of 2d numpy array
body: <p>Given a numpy array,</p>
  
  <pre><code>a = np.zeros((10,10))
  
  [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
   [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
  </code></pre>
  
  <p>And for a set of indices, e.g.:</p>
  
  <pre><code>start = [0,1,2,3,4,4,3,2,1,0]
  end   = [9,8,7,6,5,5,6,7,8,9]
  </code></pre>
  
  <p>how do you get the "select" all the values/range between the start and end index and get the following:</p>
  
  <pre><code>result = [[1, 0, 0, 0, 0, 0, 0, 0, 0, 1],
            [1, 1, 0, 0, 0, 0, 0, 0, 1, 1],
            [1, 1, 1, 0, 0, 0, 0, 1, 1, 1],
            [1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
            [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
            [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
            [1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
            [1, 1, 1, 0, 0, 0, 0, 1, 1, 1],
            [1, 1, 0, 0, 0, 0, 0, 0, 1, 1],
            [1, 0, 0, 0, 0, 0, 0, 0, 0, 1]]
  </code></pre>
  
  <p>My goal is to 'select' the all the values between the each given indices of the columns.</p>
  
  <p>I know that using <code>apply_along_axis</code> can do the trick, but is there a better or more elegant solution?</p>
  
  <p>Any inputs are welcomed!!</p>