Obtenez la moyenne de toutes les valeurs nan
In [108]: np.nanmean([np.nan, 1, 2, np.nan, 3])
Out[108]: 2.0
Healthy Hawk
In [108]: np.nanmean([np.nan, 1, 2, np.nan, 3])
Out[108]: 2.0