[Numpy-discussion] Medians that ignore values

Alan G Isaac aisaac@american....
Fri Sep 19 11:22:05 CDT 2008


On 9/19/2008 11:46 AM Pierre GM apparently wrote:
> You can't compare NaNs to anything. How do you know this np.miss is a masked 
> value, when np.sqrt(-1.) is NaN ?

I thought you could use ``is``.
E.g.,
 >>> np.nan == np.nan
False
 >>> np.nan is np.nan
True

Alan



More information about the Numpy-discussion mailing list