gaoxinge <gao...@gmail.com> added the comment:
I think that three kinds of mean should behave like: - `geometric mean`: input should be float, finite and positive - `harmonic mean`: input should be float, finite and nonzero - `mean` or `fmean`: input should be float, finite Otherwise these mean functions should raise a `StatisticsError`. Two points that we should pay attention to: - Why every input should be float? Because it is a statstics library, we should focus on the float instead of complex number or string or `math.nan`. - Why every input shoud be finite? Becuse we should get rid of `math.inf`. ---------- nosy: +gaoxinge _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38382> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com