title: numpy - select multiple elements from each row of an array
body: <p>I need to select multiple different values from each row of a 2D array.</p>
  
  <pre><code>A = np.array([[ 1, 2, 3, 4],
                [ 5, 6, 7, 8],
                [ 9,10,11,12])
  A[something]
  
  &gt;&gt;&gt; np.array([[ 1, 2],
                [ 6, 7],
                [11,12]])
  </code></pre>
  
  <p>I know I can create a boolean array the same shape as A and set each element in a for loop, but I'm hoping come up with a better solution.</p>