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.
zvone is right. Actually, I did change that but found out that I repeatedly made a mistake not to include /content/drive
in the path.