where(). Suppose we want to take only positive elements from a numpy array and set all negative elements to 0, let's write the code using numpy.
確定! 回上一頁