googlereview_max = {}
for app in google_data:
name = app[0]
n_reviews = float(app[3])
if name in review_max and review_max[name]< n_reviews:
googlereview_max[name] = n_reviews
elif name not in review_max:
googlereview_max[name] = n_reviews
What I expected to happen:
the review_max list should extract the max value. For example if I print review_max[‘Blood Pressure Log - MyDiary’], I should get 8348 as 8348 is the correct max max value in the csv file itself
Welcome to the DQ Comunity!
It’s not exactly the answer to your question, but why in your code the dictionary initially is called googlereview_max and then you call it review_max in the if-statement?