[Numpy-discussion] min() of array containing NaN
Thomas J. Duck
tom.duck@dal...
Mon Aug 11 16:02:42 CDT 2008
Determining the minimum value of an array that contains NaN produces
a surprising result:
>>> x = numpy.array([0,1,2,numpy.nan,4,5,6])
>>> x.min()
4.0
I expected 0.0. Is this the intended behaviour or a bug? I am using
numpy 1.1.1.
Thanks,
Tom
--
Thomas J. Duck <tom.duck@dal.ca>
Associate Professor,
Department of Physics and Atmospheric Science, Dalhousie University,
Halifax, Nova Scotia, Canada, B3H 3J5.
Tel: (902)494-1456 | Fax: (902)494-5191 | Lab: (902)494-3813
Web: http://aolab.phys.dal.ca/
More information about the Numpy-discussion
mailing list