Answers for "python find mean"

0

mean python

import numpy as np
values=[1,10,100]
print(np.mean(values))
values=[1,10,100,np.nan]
print(np.nanmean(values))
Posted by: Guest on March-21-2020
0

calculate mean on python

def calculate_mean(n):
    s = sum(n)
    N = len(n)
    
    mean = s / N
    
    return mean
Posted by: Guest on December-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language