[Python-modules-team] Bug#723722: numpy warns too
    Julian Taylor 
    jtaylor.debian at googlemail.com
       
    Mon Sep 30 19:32:02 UTC 2013
    
    
  
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'
    
    
More information about the Python-modules-team
mailing list