Re: [Tutor] merging 2 files.

2011-02-24 Thread nitin chandra
On Thu, Feb 24, 2011 at 9:18 PM, nitin chandra wrote: > Hi Martin, > > Thanks a lot. It did work, but I am trying to break it down and  understand > >>  import csv >> >>  # -- build the lookup table >>  # >>  lookup = dict() >>  file0 = csv.reader(open('jhun.csv','r')) >>  for row in file0: >>    

Re: [Tutor] merging 2 files.

2011-02-24 Thread Martin A. Brown
Hi Nitin, : currently the data in both the file is 6 - 10,000 rows max. Many ways to skin this cat. You say that the files are 6-10,000 lines. These are small files. Load them into memory. Learn how to use csv.reader. : PROBLEM : I need to pick the "first coloum" from test.csv AND : S