Re: Duplicate keys in dict?

2010-03-09 Thread Yinon Ehrlich
On Mar 7, 6:23 pm, vsoler wrote: > Hello, > > My code snippet reads data from excel ranges. First row and first > column are column headers and row headers respectively. After reding > the range I build a dict. > > What is the best approach for this problem? Can anybody help? Have you tried xlrea

Re: Duplicate keys in dict?

2010-03-07 Thread Tim Chase
vsoler wrote: On 7 mar, 17:53, Steven D'Aprano wrote: On Sun, 07 Mar 2010 08:23:13 -0800, vsoler wrote: Hello, My code snippet reads data from excel ranges. First row and first column are column headers and row headers respectively. After reding the range I build a dict. 'A'...

Re: Duplicate keys in dict?

2010-03-07 Thread vsoler
On 7 mar, 17:53, Steven D'Aprano wrote: > On Sun, 07 Mar 2010 08:23:13 -0800, vsoler wrote: > > Hello, > > > My code snippet reads data from excel ranges. First row and first column > > are column headers and row headers respectively. After reding the range > > I build a dict. > > > ..

Re: Duplicate keys in dict?

2010-03-07 Thread Steven D'Aprano
On Sun, 07 Mar 2010 08:23:13 -0800, vsoler wrote: > Hello, > > My code snippet reads data from excel ranges. First row and first column > are column headers and row headers respectively. After reding the range > I build a dict. > > 'A'..'B' > 'ab'3

Re: Duplicate keys in dict?

2010-03-07 Thread News123
vsoler wrote: > Hello, > > My code snippet reads data from excel ranges. First row and first > column are column headers and row headers respectively. After reding > the range I build a dict. > > 'A'..'B' > 'ab'35 > 'cd'7

Duplicate keys in dict?

2010-03-07 Thread vsoler
Hello, My code snippet reads data from excel ranges. First row and first column are column headers and row headers respectively. After reding the range I build a dict. 'A'..'B' 'ab'35 'cd'72 'cd'9.