quick and smart way for parsing a CSV file?

Skip Montanaro skip at pobox.com
Wed Sep 3 23:00:55 CEST 2003


    soundwave56> I have a CSV file from excel that looks like this
    soundwave56> (simplified):

    soundwave56> name,description,type1,type2,name,filename
    soundwave56> test1,this is a test,0.000,1.000,,
    soundwave56> test2,another test,1.000,0.000,newname,filename
    soundwave56> test3,this is a test,0.000,1.000,,
    soundwave56> test4,this is a test,0.000,1.000,,
    soundwave56> test5,this is a test,0.000,1.000,,
    soundwave56> test6,this is a test,0.000,1.000,,

Take a look at the csv module delivered with Python 2.3.

Skip





More information about the Python-list mailing list