[Python-Dev] Accumulation module

Jeremy Hylton jeremy at alum.mit.edu
Tue Jan 13 15:02:02 EST 2004


On Tue, 2004-01-13 at 14:51, Raymond Hettinger wrote:
> I'm working a module with some accumulation/reduction/statistical
> formulas:
> 
> average(iterable):
> stddev(iterable, sample=False)
> product(iterable)
> nlargest(iterable, n=1)
> nsmallest(iterable, n=1)
> 
> The questions that have arisen so far are:
> 
> * What to call the module
> 
> * What else should be in it?

median()

And a function like bins() or histogram() that accumulates the values in
buckets of some size.

Jeremy





More information about the Python-Dev mailing list