[Tutor] Adding to a CSV file?
Greg Bair
gregbair at gmail.com
Mon Aug 30 04:26:50 CEST 2010
On 08/29/2010 02:12 PM, aeneas24 at priest.com wrote:
>
> Hi,
>
> I'm learning Python so I can take advantage of the really cool stuff in the Natural Language Toolkit. But I'm having problems with some basic file manipulation stuff.
>
> My basic question: How do I read data in from a csv, manipulate it, and then add it back to the csv in new columns (keeping the manipulated data in the "right row")?
>
> Here's an example of what my data looks like ("test-8-29-10.csv"):
Python has a great module in the standard library - csv. It's really
easy to use.
http://docs.python.org/library/csv.html
Greg
More information about the Tutor
mailing list