Re: How to Get Data from DictReader for CSV Files

2011-11-21 Thread ray
On Nov 21, 10:29 am, GZ wrote: > Hi, > > On Nov 21, 7:42 am, ray wrote: > > > > > > > I don't see how to get my data from the output.  I can see the data in > > the rows but it is mixed in with the field names.  That is, the data I > > get comes out as: > > fieldname1 : data1 , fieldname2 : data2

Re: How to Get Data from DictReader for CSV Files

2011-11-21 Thread Ian Kelly
The point of DictReader is that it produces dicts. If you actually want a sequence, then use an ordinary csv.reader instead. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Get Data from DictReader for CSV Files

2011-11-21 Thread GZ
Hi, On Nov 21, 7:42 am, ray wrote: > I don't see how to get my data from the output.  I can see the data in > the rows but it is mixed in with the field names.  That is, the data I > get comes out as: > fieldname1 : data1 , fieldname2 : data2 , etc. > > import csv > linelist=open( "C:/Users/me/li