Data analysis labNumPy problems

Problem 32 of 50 · Reductions · Medium

Mean that skips missing values

Average an array that contains `nan`.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

One measurement is missing: [1.0, nan, 3.0, 5.0]. mean becomes nan if you include it. Print the mean of the numbers that are present, using np.nanmean.

1

Your solution

2

Scratch