NumPy > Conditionally select array elements (boolean indexing)

Name
Code
Output
array = numpy.random.randint(10, size=(3, 3))
print ("array \n",array)
print ("elements less than 4 \n", array[array<4])
array 
 [[9 3 1]
 [6 3 2]
 [6 4 4]]
elements less than 2 
 [3 1 3 2]