nanmean is only in numpy==1.8