Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
get the mean of all not nan values
agent provocateur
Programming language:
Python
2021-05-06 08:26:28
0
Q:
get the mean of all not nan values
BCLC
Code:
Python
2021-05-22 03:14:48
In [108]: np.nanmean([np.nan, 1, 2, np.nan, 3]) Out[108]: 2.0
0
Tags
get
value
values
nan
Related
select non nan values python
find position of nan pandas
how to replace nan values with 0 in pandas
remove rows or columns with NaN value
how to fill nan values with mean in pandas
check if something is nan python
find all nan columns pandas
check is string is nan python
python test is nan
find nan value in dataframe python
how to delete nan values in python
show all rows with nan for a column value pandas
find nan values in a column pandas
drop column with nan values
how to replace nan with 0 in pandas
python checking if something is equal to NaN
New to Communities?
Join the community