On Wed, 18 Jul 2012, Jonathan Karon wrote:

This version gives you one line per column:

Jonathan,

  Almost! It runs to completion (132K lines), but there's still a list index
error thrown and the quantity associated with the last chemical is on a new
line. It would be helpful for me to understand these two errors.

  Here's what python shows:

Traceback (most recent call last):
  File "./wide-to-long.py", line 24, in <module>
    timestamp = data[1]
IndexError: list index out of range

  And here are the last few lines of one site/date set and the beginning few
lines of the next one:

D-1,2007-12-12,V,0.000
D-1,2007-12-12,Zn
,11.400
D-1,2008-03-15,Ag,-0.005
D-1,2008-03-15,Al,-0.080

  Both the python error and the format issue must be simple but I still
don't see the reasons.

Thanks,

Rich

_______________________________________________
Portland mailing list
[email protected]
http://mail.python.org/mailman/listinfo/portland

Reply via email to