[Numpy-discussion] average of array containing NaN

Giorgio F. Gilestro giorgio@gilestro...
Mon Jun 25 12:25:04 CDT 2007


I find myself in a situation where an array may contain not-Numbers
that I set as NaN.
Yet, whatever operation I do on that array( average, sum...) will
threat the NaN as infinite values rather then ignoring them as I'd
like it'd do.

Am I missing something? Is this a bug or a feature? :-)


More information about the Numpy-discussion mailing list