[portland] List Indexing Confusion [RESOLVED]
Rich Shepard
rshepard at appl-ecosys.com
Fri Aug 12 00:11:13 CEST 2011
On Thu, 11 Aug 2011, Ryan Roser wrote:
> I think the problem is with how you're referencing the row from indata.
Ryan,
Yep. That's what I needed to get straight.
> ... I'd get rid of i and j and replace the for loop with the following:
>
> for row in indata:
> for parm, rowval in zip(parmlist,row[1:]):
> outdata.writerow([loc, row[0], parm, rowval])
That does solve the problem.
Thanks very much,
Rich
More information about the Portland
mailing list