NumPy | greater method
greater(~) performs an element-wise greater-than (>) comparison given two arrays.
The first input array.
The second input array.
Numpy array |
Instead of creating a new array, you can place the computed mean into the array specified by
Values that are flagged as False will be ignored, that is, their original value will be uninitialized. If you specified the
out parameter, the behaviour is slightly different - the original value will be kept intact.
a is a scalar, then a single boolean is returned. Otherwise, a Numpy array of booleans is returned.
np.greater([1,4], [2,3])array([False, True])