title: Compare two arrays and print out Index of row in python
body: <p>I have two arrays A and B</p>
  <pre><code>A = np.array([[9, 10, 11, 12.0],[13 14 15 16.3]])
  B = np.array([[1, 2, 3, 4],[5, 6, 7, 8],[9, 10, 11, 12],[13, 14, 15, 16],[17, 18, 19, 20]])
  </code></pre>
  <p>I want to compare a couple of the elements of A[:,2:4] with couple elements of B[:,2:4] and print out the rows where they are equal or approximate?
  Here is my approach just for only <strong>A[:,3]</strong></p>
  <pre><code>import math
  import cmath
  import numpy as np
  A = np.array([[9, 10, 11, 12],[13, 14, 15, 16.3]])
  B = np.array([[1, 2, 3, 4],[5, 6, 7, 8],[9, 10, 11, 12],[13, 14, 15, 16],[17, 18, 19, 20]])
  for k in range(0,A.shape[0]):
      i = np.where(np.isclose(B[:,3], A[k,3], atol=0.5))
      print (i)
  </code></pre>
  <p>How can I do it with both <strong>A[:,2]</strong> and <strong>A[:,3]</strong> ?</p>
  <p>Many thanks</p>