Guided project - Profitable Apps - 350-7 - Function returns current number of apps for android, not apple

Screen Link: Learn data science with Python and R projects

My Code:

android_clean_2 = []
applestore_clean = []

for row in applestore:
    if nonenglishcharacters(row[0]):
        applestore_clean.append(row)
        
for row in android_clean:
    if nonenglishcharacters(row[0]):
        android_clean_2.append(row)
        
print(len(applestore_clean))
print(len(android_clean_2))


What I expected to happen:

Print(len(applestoreclean)) outputs 6183

What actually happened:

7197

Not sure why this is working correctly for Android, but not for Apple.

Check the datasets again. The name of the app is stored in different columns for each of them.

1 Like