|
|
|
|
|
by MattConfluence
2583 days ago
|
|
A recent(-ish) addition to Python 3 I also think is worth mentioning is the statistics module: https://docs.python.org/3/library/statistics.html Every codebase eventually needs an averaging function, now you don't have to re-implement it yourself every time.
Plus it's a nice toolbox of a few different utilities that you would otherwise need to install numpy/scipy/etc. to get. |
|
I wonder why they didn't have just one median function and control its behaviour with keyword arguments instead of creating 4 different median functions.