I am in the process of transferring my data science projects from the desktop to the Cloud and find it very interesting and started working with Google Colab recently.
Currently, I am working in a notebook and I imported a Python module (.py file) with functions that I wrote. In this module, some functions state that Python should open a file from folder “data”, which was a folder on my desktop. Now I am getting the following error message:
FileNotFoundError: [Errno 2] No such file or directory: 'data/my_filename.csv'
What should I change in my .py
file so that the correct CSV files will be opened? All CSV files are now transferred to Google Drive.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.