[Numpy-discussion] Medians that ignore values

Alan G Isaac aisaac@american....
Fri Sep 19 09:07:56 CDT 2008


On 9/19/2008 4:35 AM David Cournapeau apparently wrote:
> I never use NaN as missing value

What do you use?

Recently I needed to fill a 2d array with values
from computations that could "go wrong".
I created an array of NaN and then replaced
the elements where the computation produced
a useful value.  I then applied ``nanmax``,
to get the maximum of the useful values.

What should I have done?

Thanks,
Alan Isaac



More information about the Numpy-discussion mailing list