Module for reading CSV data

Ian Parker parker at gol.com
Sat Nov 10 10:03:22 CET 2001


In article <mailman.1005333673.10717.python-list at python.org>, David A
McInnis <david at dataovation.com> writes
>Is there a module for reading CSV files into a dictionary?  Or is there a
>builtin that is used in conjunction with readlines()?
>
>The first row of my csv file contains field names.
>
>Thanks,
>
>David
>
>

The ASV module by Laurence Tratt handles csv files very well.  IIRC it
doesn't fall apart on quoted strings containing commas.

It should be available from http://tratt.net/~laurie/python/asv/

Regards

-- 
Ian Parker



More information about the Python-list mailing list