How many values in x are missing

NumPy · from NaN, inf and missing values

np.nannp.isnannp.nanmeannp.nansumnp.isfinitenp.nan_to_num

Putting the kettle on…

Starting up…

Exercise 1

How many values in x are missing? Return the count.

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.