title: Create NumPy array from another array by specifying rows and columns
body: <p>How can I create a NumPy array <code>B</code> which is a sub-array of a NumPy array <code>A</code>, by specifying which rows and columns (indicated by <code>x</code> and <code>y</code> respectively) are to be included?</p>
  
  <p>For example:</p>
  
  <pre><code>A = numpy.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15]])
  x = [0, 2]
  y = [1, 3, 4]
  B = # Do something .....
  </code></pre>
  
  <p>Should give the output:</p>
  
  <pre><code>&gt;&gt;&gt; B
  array([[2, 4, 5], [12, 14, 15]])
  </code></pre>