mean from numpy code example
Example 1: numpy mean
>> import numpy as np
>> a=[1,2,3,4,5]
>> np.mean(a)
3.0
Example 2: numpy average
import numpy as np
a = np.arange(6).reshape(3,2)
average = np.average(a)
>> import numpy as np
>> a=[1,2,3,4,5]
>> np.mean(a)
3.0
import numpy as np
a = np.arange(6).reshape(3,2)
average = np.average(a)