import statistics list_one = [1,2,3,4,5,6] x = statistics.mean(list_one) print(x)
import numpy as np values=[1,10,100] print(np.mean(values)) values=[1,10,100,np.nan] print(np.nanmean(values))