Re: How to do this with groupby (or otherwise)? (Was: iterblocks cookbook example)

2007-06-04 Thread Gerard Flanagan
On Jun 4, 1:52 pm, Gerard Flanagan <[EMAIL PROTECTED]> wrote: > On Jun 2, 10:47 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > > > On Jun 2, 10:19 am, Steve Howell <[EMAIL PROTECTED]> wrote: > > > > George Sakkis produced the following cookbook recipe, > > > which addresses a common problem

How to do this with groupby (or otherwise)? (Was: iterblocks cookbook example)

2007-06-04 Thread Gerard Flanagan
On Jun 2, 10:47 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > On Jun 2, 10:19 am, Steve Howell <[EMAIL PROTECTED]> wrote: > > > George Sakkis produced the following cookbook recipe, > > which addresses a common problem that comes up on this > > mailing list: > > ISTM, this is a common mailing

Re: iterblocks cookbook example

2007-06-03 Thread Steve Howell
--- Raymond Hettinger <[EMAIL PROTECTED]> wrote: > ISTM, this is a common mailing list problem because > it is fun > to solve, not because people actually need it on a > day-to-day basis. > It comes up in the real world for me once very couple months or so. It's usually when I need to manipulate

Re: iterblocks cookbook example

2007-06-02 Thread Raymond Hettinger
On Jun 2, 10:19 am, Steve Howell <[EMAIL PROTECTED]> wrote: > George Sakkis produced the following cookbook recipe, > which addresses a common problem that comes up on this > mailing list: ISTM, this is a common mailing list problem because it is fun to solve, not because people actually need it o

iterblocks cookbook example

2007-06-02 Thread Steve Howell
George Sakkis produced the following cookbook recipe, which addresses a common problem that comes up on this mailing list: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/521877 I would propose adding something like this to the cookbook example above. def iterblocks2(lst, start_delim):