- Code: Select all
import csv
with open('/Users/dstrickler/Sites/indigo/weathercat.csv', newline='') as csvfile:
handle = csv.reader(csvfile, delimiter=',', quotechar='|')
for row in handle:
print(', '.join(row))
# import into variables
While the code isn't working, I'm not sure if it's the CVS import code, or that I can't read from my own home directory.
What are the restrictions on reading from disk?