Mission link:Learn data science with Python and R projects
To work on this mission, I found the result of my code comes out totally different from the the solution notebook. However I think these two codes are exactly same except the list name.
This is the is_english function code before these 2 sets of code:
def is_english(string):
non_ascii = 0for character in string: if ord(character) > 127: non_ascii += 1 if non_ascii > 3: return False else: return True
print(is_english(‘Docs To Go™ Free Office Suite’))
print(is_english(‘Instachat’))
print(is_english(‘爱奇艺PPS -《欢乐颂2》电视剧热播’))
This is my code:
English_ios=
English_android=for app in ios:
name=app[1]
if is_english(name):
English_ios.append(name)for app in android_clean:
name=app[0]
if is_english(name):
English_android.append(name)explore_data(English_ios, 0,3, True)
print(’\n’)
explore_data(English_android, 0,3, True)
I consider them exactly same as the solution code: (which from solutions/Mission350Solutions.ipynb at master · dataquestio/solutions · GitHub)
android_english =
ios_english =for app in android_clean:
name = app[0]
if is_english(name):
android_english.append(app)for app in ios:
name = app[1]
if is_english(name):
ios_english.append(app)explore_data(android_english, 0, 3, True)
print(’\n’)
explore_data(ios_english, 0, 3, True)