Mission Link: https://app.dataquest.io/m/315/functions%3A-fundamentals/6/extract-values-from-any-column
Your Code: 'opened_file = open(‘AppleStore.csv’)
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
def extract(index):
column =
for row in apps_data[1:]:
value = row[index]
column.append(value)
return column
genres = extract(11)
print(genres)’
Error: ‘genres is shorter than we expected.’
Question: why is the function not looping through all the lists in apps_data?