[Numpy-discussion] average of array containing NaN
Andrew Straw
strawman at astraw.com
Mon Jun 25 14:25:58 EDT 2007
Giorgio F. Gilestro wrote:
> 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? :-)
You may be interested in masked arrays.
More information about the NumPy-Discussion
mailing list