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 ?

Thanks in advance
Siva
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to