[Numpy-discussion] Medians that ignore values
Stéfan van der Walt
Fri Sep 19 04:10:15 CDT 2008
2008/9/19 David Cournapeau <email@example.com>:
> Stéfan van der Walt wrote:
>> I agree completely.
> Me too, but I am extremely biased toward nan is always bogus by my own
> usage of numpy/scipy (I never use NaN as missing value, and nan is
> always caused by divide by 0 and co).
So am I. In all my use cases, NaNs indicate trouble.
> Why ?
Because we have x.max() silently ignoring NaNs, which causes a lot of
head-scratching, swearing and failed experiments.
More information about the Numpy-discussion