Message209975
On 2 February 2014 11:55, Steven D'Aprano <report@bugs.python.org> wrote:
>
> (1) separate functions, as Nick suggests:
> mean vs weighted_mean, stdev vs weighted_stdev
This would be my preferred approach. It makes it very clear which
functions are available for working with map style data. It will be
clear from both the module documentation and a casual introspection of
the module that those APIs are present for those who might want them.
Also apart from mode() the implementation of each function on
map-format data will be completely different from the iterable version
so you'd want to have it as a separate function at least internally
anyway. |
|
Date |
User |
Action |
Args |
2014-02-02 12:12:32 | oscarbenjamin | set | recipients:
+ oscarbenjamin, gregory.p.smith, ncoghlan, steven.daprano, wolma |
2014-02-02 12:12:32 | oscarbenjamin | link | issue20479 messages |
2014-02-02 12:12:32 | oscarbenjamin | create | |
|