title: Select One Element in Each Row of a Numpy Array by Column Indices
body: <p>Is there a better way to get the "output_array" from the "input_array" and "select_id" ?</p>
  
  <p>Can we get rid of <code>range( input_array.shape[0] )</code> ?</p>
  
  <pre><code>&gt;&gt;&gt; input_array = numpy.array( [ [3,14], [12, 5], [75, 50] ] )
  &gt;&gt;&gt; select_id = [0, 1, 1]
  &gt;&gt;&gt; print input_array
  [[ 3 14]
   [12  5]
   [75 50]]
  
  &gt;&gt;&gt; output_array = input_array[  range( input_array.shape[0] ), select_id ]
  &gt;&gt;&gt; print output_array
  [ 3  5 50]
  </code></pre>