statistics mean function python code example
Example 1: mean of a list python
import numpy as np
np.mean(list)
np.std(list)
Example 2: mean python
import numpy as np
values=[1,10,100]
print(np.mean(values))
values=[1,10,100,np.nan]
print(np.nanmean(values))