Set Working Directory in Python
If you do not have the working folder set as the working directory, you can not import the data into Python.
In Spyder, we can set the working directory by simply clicking the “RUN” button or pressing F5 on keyboard
After “RUN” is clicked, you should be able to see the working directory displayed in iPython console
Set Working Directory using getcwd() and chdir()
To Find or Set the working directory, we need to do the following in console
Know your directory
Set your directory
where xxx is your directory path.
Other Sections on Data Handling in Python
2.) How to Know and Change the Working Directory