Re: [Tutor] Accessing columns of a CSV file

2010-11-17 Thread Erik H.
Also notice that in time_list you use %H:%M format, while in your rows the format is %H:%M:%S. Simple string comparison won't work, unless you add those seconds to your time_list. Regards, Erik On Wed, Nov 17, 2010 at 2:59 PM, Hanlie Pretorius wrote: > Hi, > > I'm reading a CSV file and I want

Re: [Tutor] Accessing columns of a CSV file

2010-11-17 Thread Adam Bark
On 17/11/10 13:59, Hanlie Pretorius wrote: Hi, I'm reading a CSV file and I want to test the contents of its second column before I write it to an output file: import csv time_list=['00:00', '03:00', '06:00','09:00','12:00','15:00','18:00','21:00'] readfile='C8R004_flow.csv' in_text=open(r