Re: list + dictionary searching

2008-09-01 Thread Wojtek Walczak
On Mon, 1 Sep 2008 03:14:22 -0700 (PDT), Manoj wrote: > I would like to : > > search dictionaries within this list > create a new list with dictionaries which gives 1 dictionary for every > user with month_year as a key and utilization for that month as a > value > > Please give your thoughts Rea

Re: list + dictionary searching

2008-09-01 Thread Bruno Desthuilliers
Manoj a écrit : Hello All, I am very new to python. Any help will be highly appreciated. Thanks I have a list of dictionaries: a = [{'username': u'John Wang', 'user_utilization': 1.0, 'month': 9, 'user_id': 4, 'year': 2008}, {'username': u'John Wang', 'user_utilization': 1.0, 'month': 10, 'use

list + dictionary searching

2008-09-01 Thread Manoj
Hello All, I am very new to python. Any help will be highly appreciated. Thanks I have a list of dictionaries: a = [{'username': u'John Wang', 'user_utilization': 1.0, 'month': 9, 'user_id': 4, 'year': 2008}, {'username': u'John Wang', 'user_utilization': 1.0, 'month': 10, 'user_id': 4, 'year':