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

Chris Barker Chris.Barker@noaa....
Mon Mar 30 10:40:33 CDT 2009

Pierre GM wrote:
> On Mar 30, 2009, at 9:21 AM, Chris Barker wrote:
>> Actually, I don't think that's what the OP wanted:

my mistake -- I misread -- I though he was trying to eilimate the 
columns that had a NaN in them...oh well, hopefully I didn't simply add 
to the confusion...

> Still, masked arrays were defined exactly for that kind of problem.

yes, they really are the way to go for this kind of thing.


More information about the SciPy-user mailing list