[Python-modules-team] Bug#723722: python-scipy: stats.nanmean prints a warning when using NaN only array

Drew Parsons dparsons at debian.org
Fri Mar 29 10:59:42 GMT 2019


Package: python-scipy
Followup-For: Bug #723722

Apologies, I was trying to cancel my previous message but it slipped
through by accident, so please ignore it.

What I found was that the warning is emitted in
all cases, whether 
    np.nanmean([np.nan, np.nan])
    np.nanmean([[np.nan, np.nan]])
or  np.nanmean(np.array([np.nan, np.nan]))

But it is only emitted the first time that np.nanmean is used.



More information about the Python-modules-team mailing list