quick and smart way for parsing a CSV file?
Michael Peuser
mpeuser at web.de
Thu Sep 4 15:55:44 EDT 2003
<achrist at easystreet.com> schrieb im Newsbeitrag
news:3F5656CA.519ABADF at easystreet.com...
> Hank wrote:
> >
> > Hi,
> >
> > I have a CSV file from excel that looks like this (simplified):
> >
.........
>
>
> import csv
>
> dicts = []
>
> inputFile = open("SomeDurnFileName.csv", "rb")
> parser = csv.reader(inputFile)
If you do not use Python 2.3 for some reason or other there is a third party
CSV that is fast and workes fine with Python 2.2 (but uses a different
interface of course)
http://www.object-craft.com.au/projects/csv/
Kindly
Michael P
More information about the Python-list
mailing list