xxxxxxxxxx
np_array > 5 # Compare each element of numpy array with a variable
np_array1 > np_array2 # Compare 2 numpy arrays
np.logical_and(np_array1,np_array2) # and operation in numpy
np.logical_or(np_array1,np_array2) # or operation in numpy
np.logical_not(np_array1) # not operation in numpy
xxxxxxxxxx
np.array_equal(A,B) # test if same shape, same elements values
np.array_equiv(A,B) # test if broadcastable shape, same elements values
np.allclose(A,B, ) # test if same shape, elements have close enough values