np.average takes an optional weight parameter. If it is not supplied they are equivalent. Take a look at the source code: Mean, Average. np.mean:
確定! 回上一頁