Re: aggregation for a nested dict

2010-12-02 Thread chris
I very appreciate all responses. It's incredible how fast it is! Cheers Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: aggregation for a nested dict

2010-12-02 Thread Tim Chase
On 12/02/2010 01:49 PM, MRAB wrote: On 02/12/2010 19:01, chris wrote: i would like to parse many thousand files and aggregate the counts for the field entries related to every id. extract_field grep the identifier for the fields with regex. result = [ { extract_field("id", line) : [extract_fie

Re: aggregation for a nested dict

2010-12-02 Thread Peter Otten
chris wrote: > Hi, > > i would like to parse many thousand files and aggregate the counts for > the field entries related to every id. > > extract_field grep the identifier for the fields with regex. > > result = [ { extract_field("id", line) : [extract_field("field1", > line),extract_field("fi

Re: aggregation for a nested dict

2010-12-02 Thread Chris Rebert
On Thu, Dec 2, 2010 at 11:01 AM, chris wrote: > Hi, > > i would like to parse many thousand files and aggregate the counts for > the field entries related to every id. > > extract_field grep the identifier for the fields with regex. > > result = [ { extract_field("id", line) : [extract_field("fiel

Re: aggregation for a nested dict

2010-12-02 Thread MRAB
On 02/12/2010 19:01, chris wrote: Hi, i would like to parse many thousand files and aggregate the counts for the field entries related to every id. extract_field grep the identifier for the fields with regex. result = [ { extract_field("id", line) : [extract_field("field1", line),extract_field

aggregation for a nested dict

2010-12-02 Thread chris
Hi, i would like to parse many thousand files and aggregate the counts for the field entries related to every id. extract_field grep the identifier for the fields with regex. result = [ { extract_field("id", line) : [extract_field("field1", line),extract_field("field2", line)]} for line in FIL