How to replace all negative numbers in an array with zero
<p>If I have an NxN numpy array and if there is a negative number as any position, is there a simple and quick way I can replace that number with a 0?
something like</p>

<pre><code>for item in array:
    if item &lt;= 0: 
        item = 0
</code></pre>