如何计算大数组中每三个数组的平均值?
my_array = [[1,1,1],[2,2,2],[3,3,3],[4,4,4],[5,5,5],[6,6,6]]
numpy_array = np.array(my_array)
mean_each_array= [np.mean (x) for x in numpy_array]
result_mean_each_array = [1,2,3,4,5,6] #OK
mean_every_three_arrays = ???
result_mean_every_three_arrays = [2,5] how?
"I want to calculate mean of [1,1,1],[2,2,2],[3,3,3] and [4,4,4],[5,5,5],[6,6,6]"