Wrong length of Apple dataset

Screen Link: https://app.dataquest.io/m/428/guided-project%3A-profitable-app-profiles-for-the-app-store-and-google-play-markets/7/removing-non-english-apps-part-two

What I expected to happen:

Lenght of android english: 9614
Length of apple_english: 6183

What actually happened:

This is correct >> Lenght of android english: 9614
But this isn’t >> Length of apple_english: 7197

Any idea what step I missed with apple?

Regards,
L.

Basics (2).ipynb (7.9 KB)

Click here to view the jupyter notebook file in a new tab

1 Like

Hello @friendl74

I think you were picking from the wrong column:

You used 0 instead of 1.

You used two csv files and they have different number of columns. The feature you are interested in may be in different column number on both tables, like in this case.


for row in appsapple_data:
    if check_string(row[1]):
        apple_english.append(row)
1 Like

Thanks for noticing that error.
I should have spent a bit more time debugging it.

Regards
L.

1 Like