Find the min/max excluding zeros in a numpy array (or a tuple) in python
Asked 2011-08-23T16:33:37.360
73
I have an array. The valid values are not zero (either positive or negetive). I want to find the minimum and maximum within the array which should not take zeros into account. For example if the numbers are only negative. Zeros will be problematic.