Page Numpy Github on ndarrayindicates that the comparison operators are equivalent forms ufunc in Numpy. Therefore lhs <= rhsequivalentnp.less_equal(lhs, rhs)
np.info(np.less_equal)
Returns
------- out : bool or ndarray of bool
Array of bools, or a single bool if `x1` and `x2` are scalars.
, :
import operator
result = np.vectorize(operator.le)(lhs, rhs)
np.vectorize Numpy . numpy , .