[SciPy-user] calculate average by excluding NaN value in Array
Chris Barker
Chris.Barker at noaa.gov
Mon Mar 30 11:40:33 EDT 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.
-CHB
More information about the SciPy-User
mailing list