結果 : weighted moving average formula python