Re: Access CSV data by column name..

2005-09-21 Thread Larry Bates
The CSV module has a DictReader method that will read each line into a dictionary with the keys being named by the column names found on the first line. If the file doesn't have the first line, it appears you can provide the fieldnames as a keyword argument to DictReader instead (haven't used this

Access CSV data by column name..

2005-09-21 Thread Michael March
I have seen a few recipes out there that allow for access to DB-API columns by their name instead of column number.. I was wondering if anyone knew of any code snippets that allow for the same thing with the CSV module? thanks! -- http://mail.python.org/mailman/listinfo/python-list