[Numpy-discussion] Why NaN?

Robert Kern robert.kern at gmail.com
Tue Aug 4 14:43:54 EDT 2009


On Tue, Aug 4, 2009 at 13:40, Gökhan Sever<gokhansever at gmail.com> wrote:
> This is the loveliest of all solutions:
>
> c[isfinite(c)].mean()

I kind of like c[c == c].mean(), but only because it's a bit mind-blowing. :-)

> You are all very helpful and funny. I am sure most of you spend more than 16
> hours a day in front of or by your screens :)

Hey! I resemble that remark!

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list