I am stuck here
My code seems alright, can anyone help?
opened_file = open(‘AppleStore.csv’)
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
data_sizes =
for rows in apps_data[1:]:
size = float(row[2])
data_sizes.append(size)
min_size = min(data_sizes)
max_size = max(data_sizes)
hi @abdulmabdulfata,
In order to help, consider the following things:
1: Include the link to your mission. Then we can reproduce.
2: Format your code in three backticks then it will look like this
which is easier readable.
For example right now I suspect that the problem might be indentation. But that could be due to the format of your code.
opened_file = open(‘AppleStore.csv’)
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
data_sizes =
for rows in apps_data[1:]: #After a loop the rows affected by it should be
#indented with 4 spaces or a tab
size = float(row[2])
data_sizes.append(size)
min_size = min(data_sizes)
max_size = max(data_sizes)
opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
data_sizes = []
for rows in apps_data[1:]:
size = float(row[2])
data_sizes.append(size)
min_size = min(data_sizes)
max_size = max(data_sizes)
Link to the mission: https://app.dataquest.io/m/314/dictionaries-and-frequency-tables/12/frequency-tables-for-numerical-columns
Thank you @DavidMiedema
The code is still not working @DavidMiedema
There is a simple typo there, Try this:
opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
data_sizes = []
for row in apps_data[1:]:
size = float(row[2])
data_sizes.append(size)
min_size = min(data_sizes)
max_size = max(data_sizes)
1 Like