Getting error in first project please help

Screen Link:
https://app.dataquest.io/m/350/guided-project%3A-profitable-app-profiles-for-the-app-store-and-google-play-markets/5/removing-duplicate-entries-part-two

My Code:

for app in android_apps[1:]:
name = app[0]
n_reviews = float(app[3])

if name in reviews_max and reviews_max[name] < n_reviews:
reviews_max[name] = n_reviews

elif name not in reviews_max:
reviews_max[name] = n_reviews


What I expected to happen:


What actually happened: 

ValueError Traceback (most recent call last)
in
13 for app in android_apps[1:]:
14 name = app[0]
—> 15 n_reviews = float(app[3])
16
17 if name in reviews_max and reviews_max[name] < n_reviews:

ValueError: could not convert string to float: ‘3.0M’


<!--Enter other details below: -->
How to remove the error. If I need to mainpulate the list if so than what command need to give.
1 Like

Hi @dhruvbhatnagar9548,

I think this is because you forgot to delete the wrong row discussed on this screen.

Thank you @Elena_Kosourova.

Hi dhruv,
When you delete the rows just check once by printing that row number.