def welcome(a_string):
welcome_msg = ('Welcome to ' + a_string + '!')
return welcome_msg
dq = 'Dataquest'
jn = 'Jupyter Notebook'
welcome(dq)
welcome(jn)
'Welcome to Jupyter Notebook!'
%history -p
>>> def welcome(a_string): ... welcome_msg = ('Welcome to ' + a_string + '!') ... return welcome_msg ... dq = 'Dataquest' ... jn = 'Jupyter Notebook' ... >>> welcome(dq) ... welcome(jn) ... welcome(py) ... >>> welcome(dq) ... welcome(jn) ... >>> %history -p
We did the following in the code cell below:
open()
function to open the AppleStore.csv dataset
and assigning the output to a variable named opened_file
.csv
module import the reader()
function.reader()
function and assigning the output to a variable named read_file
.list()
function to turn read_file
into a list of list and assigning the output to a variable named apps_data
.apps_data
.opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
apps_data[:3]
[['id', 'track_name', 'size_bytes', 'currency', 'price', 'rating_count_tot', 'rating_count_ver', 'user_rating', 'user_rating_ver', 'ver', 'cont_rating', 'prime_genre', 'sup_devices.num', 'ipadSc_urls.num', 'lang.num', 'vpp_lic'], ['284882215', 'Facebook', '389879808', 'USD', '0.0', '2974676', '212', '3.5', '3.5', '95.0', '4+', 'Social Networking', '37', '1', '29', '1'], ['389801252', 'Instagram', '113954816', 'USD', '0.0', '2161558', '1289', '4.5', '4.0', '10.23', '12+', 'Photo & Video', '37', '0', '29', '1']]
This data set contains more than 7000 Apple iOS mobile application details. The data was extracted from the iTunes Search API at the Apple Inc website by Data Engineer Ramanathan. Details of the dataset and download link can be found here.
This table explains what each column in the data set describes:
"id" | App ID | |||
---|---|---|---|---|
"track_name" | App Name | |||
"size_bytes" | Size (in Bytes) | |||
"currency" | Currency Type | |||
"price" | Price amount | |||
"ratingcounttot" | User Rating counts (for all version) | |||
"ratingcountver" | User Rating counts (for current version) | |||
"user_rating" | Average User Rating value (for all version) | |||
"userratingver" | Average User Rating value (for current version) | |||
"ver" | Latest version code | |||
"cont_rating" | Content Rating | |||
"prime_genre" | Primary Genre | |||
"sup_devices.num" | Number of supporting devices | |||
"ipadSc_urls.num" | Number of screenshots showed for display | |||
"lang.num" | Number of supported languages | |||
"vpp_lic" | Vpp Device Based Licensing Enabled |