fyi, numpy 1.8 will in future also implement nanmean which scipy will
then use.
But note that numpy.nanmean will alos warn if you use it on an array
full of nans:
In [1]: np.nanmean([np.nan, np.nan])
/tmp/local/lib/python2.7/site-packages/numpy/lib/nanfunctions.py:573:
NanWarning: Mean of empty slice
warnings.warn("Mean of empty slice", NanWarning)
Out[1]: nan
In [2]: np.__version__
Out[2]: '1.8.0.dev-410ad54'
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]