Use NumPy's indexing to set the NumPy array elements to 0 if they are greater than a certain number. You can directly assign a zero to the slice of the array ...
確定! 回上一頁