title: How to check if an array is in another array in Python
body: <p>I thought that <code>in</code> would be good for this but it returns true in places where it shouldn't. For example:</p>
  
  <pre><code>import numpy as np
  
  a = np.array([])
  
  for i in range(3):
      for j in range(3):
          a = np.append(a,[i,j])
  a = np.reshape(a,(9,2))
  print(a)
  
  print([[0,40]] in a)
  </code></pre>
  
  <p>will print true. I cannot understand why it does this... is it because 0 is in the list? I'd like to have something that only prints true if the entire array is in the list.</p>
  
  <p>I want to have my list </p>
  
  <pre><code>[[0,1],
  [0,2]]
  </code></pre>
  
  <p>and only return true if exactly <code>[0,x]</code> (same shape same order) is in it.</p>