Re: [Tutor] Mapping ID's for corresponding values in different Columns (UPDATE)

2012-07-08 Thread Fred G
I thought it made sense to read the two columns in File1 in as a dictionary (where the key is actually the name, so that we can search on it later), and the column of interest in File2 as a list. Finding the common values then is just: for item in file2_list: for line in file1_dict: if

Re: [Tutor] Mapping ID's for corresponding values in different Columns (UPDATE)

2012-07-08 Thread Walter Prins
On 9 July 2012 00:50, Fred G bayespoker...@gmail.com wrote: I thought it made sense to read the two columns in File1 in as a dictionary (where the key is actually the name, so that we can search on it later), and yes... the column of interest in File2 as a list. Finding the common values