[Numpy-discussion] Medians that ignore values
Stéfan van der Walt
stefan at sun.ac.za
Fri Sep 19 05:10:15 EDT 2008
2008/9/19 David Cournapeau <david at ar.media.kyoto-u.ac.jp>:
> 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.
Cheers
Stéfan
More information about the NumPy-Discussion
mailing list