[issue44150] Add optional weights parameter to statistics.fmean()

2021-05-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44150] Add optional weights parameter to statistics.fmean()

2021-05-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +24800 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26175 ___ Python tracker __

[issue44150] Add optional weights parameter to statistics.fmean()

2021-05-16 Thread Raymond Hettinger
New submission from Raymond Hettinger : Weighted averages are another basic that we should support. A professor assigns a grade for a course by weighting quizzes at 20%, homework at 20%, a midterm exam at 30%, and a final exam at 30%: >>> grades = [85, 92, 83, 91] >>> weights = [0.20, 0.20, 0