CSV

Braxton Alfred braxtonalfred at shaw.ca
Wed Feb 22 12:26:54 EST 2017


Why does this not run?  It is right out of the CSV file in the Standard Lib.


 

Python ver 3.4.4, 64 bit.

 

 

 

import csv
""" READ EXCEL FILE """
filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv'
with open (filename, newline = ' ') as bp:
    dialect = csv.excel
    reader = csv.reader(bp)
    for row in reader:
        print (row)

 

 

Marc

 




More information about the Python-list mailing list