Eric V. Smith <e...@trueblade.com> added the comment:

Steven is correct: your problem is that in the first example you're reading the 
header row before you pass the file to DictReader, so the DictReader cannot 
know what your columns are named. (Actually, your code uses the second row of 
your file as the column names: you should have been able to determine this by 
looking at the value of "row" that was printed).

I'm going to close this issue. Please do some more investigation. If you can 
produce a short example that we can execute ourselves, including any needed 
data files, and you think it still shows an error, please feel free to reopen 
this issue.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to