>>> import numpy as np >>> data = np.array([[1, 2, 3], [5, 6, 7]]) >>> np.average(data, axis=0) array([ 3., 4., 5.])