Return the mean of x, ignoring the gaps
NumPy · from NaN, inf and missing values
np.nannp.isnannp.nanmeannp.nansumnp.isfinitenp.nan_to_numPutting the kettle on…
Starting up…
Exercise 3
Return the mean of x, ignoring the gaps.
your answer
stuck? the lesson behind it
NaN, inf and missing values
Why one gap poisons a whole sum, and why `== np.nan` never finds anything.