How can I choose a file from my computer to read a csv file

Error: 'directory/StateData.csv' does not exist in current working directory ('C:/Users/meena/OneDrive/Documents/Exercise Files')

is where directory/StateData.csv needs to be. Check whatever file manager Windows uses to move it there.

If you are running your script interactively file.choose might be of help.

Run file.choose and browse with the file manager to the file you need.

You will find the exact path to your file in the console. You can copy this path and put it wherever you need it.

The package here can also be of help in dealing with paths.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.