To calculate the average separately for each column of the 2D array, use the function call np.average(matrix, axis=0) setting the axis argument to 0.
確定! 回上一頁