April 25th, 2013, 06:03 AM
HELP: how to open a .csv file in Python?
This is probably something really simple, but I am not particularly familiar with Python so I thought I would ask as I know that python has an excel module.
How can I insert a .csv file into Python 3.2.3?
Does anyone have a code for this?
Any help much appreciated..
April 25th, 2013, 06:44 AM
>>> import csv
>>> with open('doremi.csv') as csvfile:
... doremi_reader = csv.reader(csvfile, delimiter=',')
... for row in doremi_reader:
April 25th, 2013, 09:57 AM
For many applications, the csv module is a bit of overkill. You can:
for record in f: