[SciPy-user] calculate average by excluding NaN value in Array

David Cournapeau cournape@gmail....
Mon Mar 30 10:09:53 CDT 2009

On Mon, Mar 30, 2009 at 10:21 PM, Chris Barker <Chris.Barker@noaa.gov> wrote:
> David Cournapeau wrote:
>>> nanmean should do what you want,
> Actually, I don't think that's what the OP wanted:

I guess the complex answer would be: use nanmean if you want to ignore
nan and use masked arrays if you want more complete feature for nan as
missing data.


More information about the SciPy-user mailing list