Reading CSV FILE

36 views
Skip to first unread message

Ismail

unread,
Sep 27, 2012, 9:38:24 AM9/27/12
to pyf-...@googlegroups.com
Hi, i have a problem when trying to read in a CSV file (Via producer code), the information is not being loaded correctly. I am getting None for all entries. 


Florent Aide

unread,
Oct 17, 2012, 4:10:40 AM10/17/12
to pyf-...@googlegroups.com
Hi Ismail,

in your code example you define field names in CAPS (ie: 'A', 'B',
'C', 'D') but then try to read the data from lowercase fieldnames:

Rec(row['a'],row['b'],row['c'],row['d'])

so I don't think you'll get much data... could you try this instead?

Rec(row['A'],row['B'],row['C'],row['D'])

Cheers,
Florent
Reply all
Reply to author
Forward
0 new messages