If you want to get elements of a Numpy array that are greater, smaller, or equal to a value or an array, simply use comparison operators such as <, <=, >, >=, ==.
The image above shows an example of using comparison operators.
If you want to get elements of a Numpy array that are greater, smaller, or equal to a value or an array, simply use comparison operators such as <, <=, >, >=, ==.
The image above shows an example of using comparison operators.