Re: best cumulative sum
- From: Micah Elliott <mde@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 20 Nov 2005 22:45:08 -0800
On Nov 21, David Isaac wrote:
> What's the good way to produce a cumulative sum?
>>> import operator
>>> x = 1,2,3
>>> reduce(operator.add, x)
6
--
_ _ ___
|V|icah |- lliott <>< mde@xxxxxxxxxxxxxxxxxx
" " """
.
- Follow-Ups:
- Re: best cumulative sum
- From: Erik Max Francis
- Re: best cumulative sum
- References:
- best cumulative sum
- From: David Isaac
- best cumulative sum
- Prev by Date: Re: best cumulative sum
- Next by Date: Re: Underscores in Python numbers
- Previous by thread: Re: best cumulative sum
- Next by thread: Re: best cumulative sum
- Index(es):