Re: Looping through File Question

2007-09-06 Thread Ricardo Aráoz
John Machin wrote: > On Sep 5, 10:26 pm, planetmatt <[EMAIL PROTECTED]> wrote: >> On 5 Sep, 12:34, John Machin <[EMAIL PROTECTED]> wrote: >> >> >> >>> On Sep 5, 8:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: I am a Python beginner. I am trying to loop through a CSV file which I can do.

Re: Looping through File Question

2007-09-05 Thread Thomas Nelson
> > > On Sep 5, 8:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: > > > > > I am a Python beginner. I am trying to loop through a CSV file which > > > > I can do. What I want to change though is for the loop to start at > > > > row 2 in the file thus excluding column headers. The DictReader object

Re: Looping through File Question

2007-09-05 Thread John Machin
On Sep 5, 10:26 pm, planetmatt <[EMAIL PROTECTED]> wrote: > On 5 Sep, 12:34, John Machin <[EMAIL PROTECTED]> wrote: > > > > > On Sep 5, 8:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: > > > > I am a Python beginner. I am trying to loop through a CSV file which > > > I can do. What I want to change

Re: Looping through File Question

2007-09-05 Thread planetmatt
On 5 Sep, 12:34, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 5, 8:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: > > > I am a Python beginner. I am trying to loop through a CSV file which > > I can do. What I want to change though is for the loop to start at > > row 2 in the file thus excluding

Re: Looping through File Question

2007-09-05 Thread John Machin
On Sep 5, 8:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: > I am a Python beginner. I am trying to loop through a CSV file which > I can do. What I want to change though is for the loop to start at > row 2 in the file thus excluding column headers. > > At present I am using this statement to initi

Re: Looping through File Question

2007-09-05 Thread Amit Khemka
On 9/5/07, Francesco Guerrieri <[EMAIL PROTECTED]> wrote: > On 9/5/07, planetmatt <[EMAIL PROTECTED]> wrote: > > I am a Python beginner. I am trying to loop through a CSV file which > > I can do. What I want to change though is for the loop to start at > > row 2 in the file thus excluding column

Re: Looping through File Question

2007-09-05 Thread vijayca
On Sep 5, 3:58 pm, planetmatt <[EMAIL PROTECTED]> wrote: > I am a Python beginner. I am trying to loop through a CSV file which > I can do. What I want to change though is for the loop to start at > row 2 in the file thus excluding column headers. > > At present I am using this statement to initi

Re: Looping through File Question

2007-09-05 Thread Francesco Guerrieri
On 9/5/07, planetmatt <[EMAIL PROTECTED]> wrote: > > I am a Python beginner. I am trying to loop through a CSV file which > I can do. What I want to change though is for the loop to start at > row 2 in the file thus excluding column headers. > > At present I am using this statement to initiate a

Looping through File Question

2007-09-05 Thread planetmatt
I am a Python beginner. I am trying to loop through a CSV file which I can do. What I want to change though is for the loop to start at row 2 in the file thus excluding column headers. At present I am using this statement to initiate a loop though the records: for line in f.readlines(): How do