Re: Grouping on and exporting to csv files

2013-03-20 Thread Peter Otten
accessnew...@gmail.com wrote: > My current Test_Sort.csv looks like this (which constantly > changes-although never more than 4 records, thus far anyway): > > RecNo,Count,District,Fruit,StoreNo > 1,100,0,oranges,1254 > 2,30,3,apples,654 > 3,100,0,bananas,21 > 4,0,4,grapes,478 > > I wrote the fol

Grouping on and exporting to csv files

2013-03-19 Thread accessnewbie
My current Test_Sort.csv looks like this (which constantly changes-although never more than 4 records, thus far anyway): RecNo,Count,District,Fruit,StoreNo 1,100,0,oranges,1254 2,30,3,apples,654 3,100,0,bananas,21 4,0,4,grapes,478 I wrote the following python 2.7 script (stuck with 2.7) ---