Namedtuples problem

Irv Kalb Irv at furrypants.com
Thu Feb 23 18:50:59 EST 2017


> On Feb 23, 2017, at 3:00 PM, Deborah Swanson <python at deborahswanson.net <mailto:python at deborahswanson.net>> wrote:
> 
> The weirdness is that 
> 
> group[0][4] 
> 
> gets the right answer, but
> 
> group[[idx][records_idx[label]]], 
> where idx = 0 and records_idx[label]] = 4


If that's the case, then I think you need this instead:

group[idx][records_idx[label]]

Irv





More information about the Python-list mailing list