[Numpy-discussion] min bug

Alan McIntyre alan.mcintyre@gmail....
Tue Nov 17 01:13:34 CST 2009


On Mon, Nov 16, 2009 at 11:07 PM, Chris <fonnesbeck@gmail.com> wrote:
> I'm pretty sure this shouldn't happen:
>
> In [1]: from numpy import min
>
> In [2]: min(5000, 4)
> Out[2]: 5000

The way you're calling it is working like this: min((5000,) , axis=4)
so you'd need to do this instead: min((5000,4))


More information about the NumPy-Discussion mailing list