350-7 Guided Project: Profitable App Profiles For The App Store And Google Play Markets

I get error in Removing non-english apps-Part 2. My code is:

def non_english(app_name):
    count = 0
    for i in app_name:
            if ord(i) > 127:
                count+= 1
    if count >3:
        return False
    else :
        return True

ios_english_apps = []
for row in ios_listed[1:]:
    name = row[0]
    if non_english(name):
        ios_english_apps.append(row)
len(ios_english_apps)

I get 7197 as answer
ios_listed is the ios data as list of lists including headers

Hi @pritim2k6,

I would like to take a look at your Guided Project, please click the Download button at the top of the Jupyter Notebook interface in our platform.

jupyter_guided_project_download.png

This will download a .tar file which contains both your notebook file and the required datasets. Please send me this .tar file.

Just as a side note, Do you know we have solutions for all the Jupyter based Guided Projects? You can access it by clicking the key-shaped icon.

Best,
Sahil

Guided Project_ Profitable App Profiles for the App Store and Google Play Markets.tar (2.4 MB)
Thanks for the response!! The file is attached. I am aware that the solution for this project is available. As per the solution, the no of english apps in ios is 6183, while I get an answer of 7197.

for row in ios_listed[1:]:
name = row[0]

I think the name should be row[1], at least that’s what it is for me.

Thanks a ton!!! I notice this error now and finally have 6183 english apps.