Hello all,
I am now trying to access the csv file using dictreader.
import csv
r25 = csv.DictReader(open('Report_25', 'rb'), delimiter=',')
rownum = 1
for row in r25:
# Save header row.
if rownum == 0:
header = row
else:
colnum = 0
for col in row:
This only gets me the following output
{'FieldName1': '4', 'FieldName2': '0.00', 'FieldName3':
'4001433', 'FieldName4': '759'}
1. How do i access the 4, 0.00, ... the values ?
2. How do i compare it with another csv file ?
Sorry about posting repeatedly. Haven't been able to understand yet.
Thanks in advance
Siva
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc