Ask coding questions

← Back to all posts
Reading csv file
pavanillapani (3)

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

ArchieMaclean (926)

You can't use files from your own computer in 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 :)