[Numpy-discussion] Medians that ignore values

Pierre GM pgmdevlist@gmail....
Fri Sep 19 11:05:29 CDT 2008


On Friday 19 September 2008 12:02:08 Peter Saffrey wrote:
> Alan G Isaac <aisaac <at> american.edu> writes:
> > Recently I needed to fill a 2d array with values
> > from computations that could "go wrong".

> Should I take the earlier advice and switch to masked arrays?
>
> Peter

Yes. As you've noticed, you can't compare nans (after all, nans are not 
numbers...), which limits their use.


More information about the Numpy-discussion mailing list