[Numpy-discussion] min bug

Sebastian Berg sebastian@sipsolutions....
Tue Nov 17 01:13:14 CST 2009


Known issue, I think someone posted about it a while ago too. The numpy
min is array aware, and it expects an array. The second argument is the
axis, which in the case of a single number doesn't matter.

On Tue, 2009-11-17 at 07:07 +0000, Chris wrote:
> I'm pretty sure this shouldn't happen:
> 
> In [1]: from numpy import min
> 
> In [2]: min(5000, 4)
> Out[2]: 5000
> 
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 




More information about the NumPy-Discussion mailing list