Re: [Tutor] Nested loop of I/O tasks

2009-11-25 Thread Kent Johnson
On Wed, Nov 25, 2009 at 1:38 AM, Christian Witts wrote: > If your output is going to be sorted like that so you know NONAME will be on > the same line in both files what you can do is > > INCT = open('something.csv', 'r') > INMRI = open('something_else.csv', 'r') > > rec_INCT = INCT.readline() >

Re: [Tutor] Nested loop of I/O tasks

2009-11-25 Thread Kent Johnson
On Tue, Nov 24, 2009 at 5:42 PM, Bo Li wrote: > Dear Python > > I am new to Python and having questions about its usage. Currently I have > to read two .csv files INCT and INMRI which are similar to this > ... > > My job is to match the name on the two files and combine the first three > attrib

Re: [Tutor] Nested loop of I/O tasks

2009-11-24 Thread Dave Angel
Bo Li wrote: Dear Python I am new to Python and having questions about its usage. Currently I have to read two .csv files INCT and INMRI which are similar to this INCT NONAME 121.57 34.71 14.81 1.35 0 0 1 Cella 129.25 100.31 27.25 1.35 1 1 1 Chiasm 130.3 98.49 26.05 1.35 1 1 1 FMagnu

Re: [Tutor] Nested loop of I/O tasks

2009-11-24 Thread wesley chun
On Tue, Nov 24, 2009 at 2:42 PM, Bo Li wrote: > > I am new to Python and having questions about its usage. Currently I have to > read two .csv files INCT and INMRI which are similar to this: > [...] > I was a MATLAB user and am really confused by what happens with me. I wish > someone could help

Re: [Tutor] Nested loop of I/O tasks

2009-11-24 Thread Christian Witts
Bo Li wrote: Dear Python I am new to Python and having questions about its usage. Currently I have to read two .csv files INCT and INMRI which are similar to this INCT NONAME 121.57 34.71 14.81 1.350 0 1 Cella 129.25 100.31 27.25 1.351 1 1 Chiasm 1