best cumulative sum

David Isaac aisaac0 at verizon.net
Mon Nov 21 10:19:22 EST 2005


<bonono at gmail.com> wrote in message
news:1132553397.042444.147660 at g44g2000cwa.googlegroups.com...
> He seems to want scanl

Yes.  But it's not in Python, right?
(I know about Keller's version.)

Robert Kern wrote:
> Define better. More accurate? Less code?

Good point.
As Bonono (?) suggested: I'd most like a solution that
relies on a built-in to give me both of those.
(Pretty is good too.)  Like SciPy's cumsum.

Thanks,
Alan Isaac





More information about the Python-list mailing list