that returns the weighted average of all integers tuple code example
Example: numpy average
import numpy as np
a = np.arange(6).reshape(3,2)
average = np.average(a)
import numpy as np
a = np.arange(6).reshape(3,2)
average = np.average(a)