clint@datanavigator.ca
BAN USERPython 3.5
def get_hotels(scores=scores, min_avg_score=5):
import collections
to_return = []
hotel_scores = collections.defaultdict(list)
for s in scores:
hotel_scores[s['hotel_id']].append(s['score'])
for hotel in hotel_scores.keys():
score_list = hotel_scores[hotel]
if sum(score_list) / len(score_list) >= in_avg_score:
to_return.append(hotel)
return to_return
Repchingdelisa, Accountant at ABC TECH SUPPORT
I'm a Creative director in San Diego, USA.I map out future plans and make sure the result and ...
Repmartinskrull, Analyst at A9
Hi everyone, I am from new york,USA. I currently work in the Affiliate Marketing industry. I love all things ...
Repsusanaminick, Research Scientist at CapitalIQ
I am Susan from Dallas, I am working as a Property manager in Kohl's Food Stores company. I love ...
Repelisahbuff, Apple Phone Number available 24/7 for our Customers at Altera
I have previous work experience in a customer focused environment. I like to Enjoy my Free Time Playing football.I ...
Python 3.5
- clint@datanavigator.ca July 15, 2016