Python CSV File Reading and Writing

The CSV (Comma Separated Values) format is a widely-accepted format for spreadsheet programs. Python has the capability to read and write csv data via the module:

import csv

Here is a demonstration script: csv_read_write.py

Here is the data file for the demonstration script: input_data.csv

See also:

Python Standard Library CSV

Tom Irvine

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s