C3W1 list index out of range error

Hello,

I’m getting list index out of range error in parse_data_from_file(filename) function. Here is the screenshot of the error. Could you please help me fix this?

Please click my name and message your notebook as an attachment.

The 1st argument to csv.reader is incorrect. It should be a reference to the csv file and not the filename.

Thank you. It worked.