Reading csv file
pavanillapani (0)

I am unable to open the CSV file. The path was located in the local machine.

You are viewing a single comment. View All
ArchieMaclean (596)

You can't use files from your own computer in repl.it. You will have to upload the file yourself.
Click on the 3 dots in the top left and click Upload File.

Then upload your CSV file.

You can then just do what you are doing, but with the file name, e.g. if the CSV file is called file.csv, then:

with open('D:\Python Projects\files.csv', 'r') as data:

Please mark this as the answer if it solved your problem :)