Answers for "get the mean of all not nan values"

0

get the mean of all not nan values

In [108]: np.nanmean([np.nan, 1, 2, np.nan, 3])
Out[108]: 2.0
Posted by: Guest on July-31-2020

Code answers related to "get the mean of all not nan values"

Python Answers by Framework

Browse Popular Code Answers by Language