Re: CSV without first line?

2007-07-22 Thread memracom
On 15 Jul, 04:30, Sebastian Bassi [EMAIL PROTECTED] wrote: Hi, In my CSV file, the first line has the name of the variables. So the data I want to parse resides from line 2 up to the end. Here is what I do: import csv lines=csv.reader(open(MYFILE)) lines.next() #this is just to avoid the

Re: CSV without first line?

2007-07-15 Thread Steve Holden
Sebastian Bassi wrote: Hi, In my CSV file, the first line has the name of the variables. So the data I want to parse resides from line 2 up to the end. Here is what I do: import csv lines=csv.reader(open(MYFILE)) lines.next() #this is just to avoid the first line for line in lines:

Re: CSV without first line?

2007-07-15 Thread Sebastian Bassi
On 7/15/07, John Machin [EMAIL PROTECTED] wrote: So you imagine that there is an undocumented feature? No, I just think that is documented but I am not able to understand it. Reading the list I've learned several things that are not directly inferred from documentation (that is not the same as

CSV without first line?

2007-07-14 Thread Sebastian Bassi
Hi, In my CSV file, the first line has the name of the variables. So the data I want to parse resides from line 2 up to the end. Here is what I do: import csv lines=csv.reader(open(MYFILE)) lines.next() #this is just to avoid the first line for line in lines: DATA PARSING This works fine.

Re: CSV without first line?

2007-07-14 Thread John Machin
On Jul 15, 1:30 pm, Sebastian Bassi [EMAIL PROTECTED] wrote: Hi, In my CSV file, the first line has the name of the variables. So the data I want to parse resides from line 2 up to the end. Here is what I do: import csv lines=csv.reader(open(MYFILE)) lines.next() #this is just to avoid