DoughnutDayDevotee
DoughnutDayDevotee

Reputation: 111

Pandas File Not Found Error -- Worked Yesterday

Yesterday I imported an sas file into Pandas, and was able to successfully poke around the data. This morning, I received a file not found error, although I did not move any files.

I triple-checked the path and it was correct. Then I tried placing a copy of the file on my desktop and redirecting read command. Same error. (This is the type of thing that makes you feel crazy.) Any help appreciated.

screen capture of file not found error in Pandas

Upvotes: 0

Views: 249

Answers (1)

johnny243
johnny243

Reputation: 314

Unless that you have a folder named Dropbox inside your project directory, I suggest you use the full path of your file:

/home/<username>/Dropbox/Thesis Fall 2017/Data Analysis/epcg17.xpt

OR

~/Dropbox/Thesis Fall 2017/Data Analysis/epcg17.xpt

Both should work.

Upvotes: 1

Related Questions