[Numpy-discussion] numpy.average(fooArray, axis=0): dropping nans from calculation

Webb Sprague webb.sprague at gmail.com
Thu Jul 13 18:55:33 CDT 2006


Could someone recommend a way to average an array along the columns
without propagating the nans and without turning them into some weird
number which bias the result?  I guess I can just keep using an
indexing array for fooArray, but if there is somehting more graceful,
I would love to know.

Boy missing data is a pain in the neck...

Thanks again!




More information about the Numpy-discussion mailing list