mean numpy of a list code example
Example 1: mean of a vector in python
>>> import numpy
>>> numbers = [3, 2, 8, 7]
>>> mean = numpy.mean(numbers)
>>> mean
5.0
Example 2: numpy average
import numpy as np
a = np.arange(6).reshape(3,2)
average = np.average(a)