np.mean always calculates the arithmetic mean. np.average has an optional weights parameter that can be used to calculate a weighted average.
確定! 回上一頁