[portland] Reformatting Data Files
Rich Shepard
rshepard at appl-ecosys.com
Sat Jan 29 01:36:10 CET 2011
On Fri, 28 Jan 2011, Kyle Jones wrote:
> It isn't anything pretty, but I think this might be similar:
> http://paste.pocoo.org/show/328545/
Thank you, Kyle. I'll ponder and play with the code until I really
understand it and see what it's doing. It looks just like what I want/need.
Interestingly, I had to specify binary mode when reading ("rb" rather than
"r") because csv.reader() needs binary mode for some reason I don't
understand. It is a text file, but that's just the way it works I guess.
Much grasses,
Rich
More information about the Portland
mailing list