sample mean numpy code example
Example 1: numpy mean
>> import numpy as np
>> a=[1,2,3,4,5]
>> np.mean(a)
3.0
Example 2: mean of a vector in python
>>> import numpy
>>> numbers = [3, 2, 8, 7]
>>> mean = numpy.mean(numbers)
>>> mean
5.0
>> import numpy as np
>> a=[1,2,3,4,5]
>> np.mean(a)
3.0
>>> import numpy
>>> numbers = [3, 2, 8, 7]
>>> mean = numpy.mean(numbers)
>>> mean
5.0