Skip to content

Instantly share code, notes, and snippets.

@okellogabrielinnocent
Created October 14, 2019 09:33
Show Gist options
  • Save okellogabrielinnocent/995f0f7528691c3a17b9afed8792cb0f to your computer and use it in GitHub Desktop.
Save okellogabrielinnocent/995f0f7528691c3a17b9afed8792cb0f to your computer and use it in GitHub Desktop.
opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
genre_counting ={}
for row in apps_data[1:]:
genre= row[11]
if genre in genre_counting:
genre_counting[genre] += 1
else:
genre_counting[genre] =1
print(genre_counting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment