I am getting this error everytime running python code on local data from my drive I am using the code below to import the data from my drive
from google.colab import drive
drive.mount('/content/drive')
Uploading files from local file system through file-explorer You can either use the upload option at the top of the file-explorer pane to upload any file(s) from your local file system to Colab in the present working directory. 2. Select the “upload” option.
Step 2: Select any Dataset and Click on the Download. Step 3: The downloaded file will be in Zip form, Unzip it. Step 4: Upload Your Dataset file or folder to Google Colab Notebook.
Instructions. Place the Jupyter notebook in your Google Drive. In Google Drive in your web browser, open the Jupyter notebook with Colaboratory. Run the cells in this notebook to mount the drive and practice reading & writing files.
Path to save in drive can be found easily by clicking files on left side, navigating to folder and right click to choose Copy path .
Check if your file exists in this "/content/drive/" location
import os
os.chdir("/content/drive/")
!ls
Most likely it would be under 'My Drive'
import os
os.chdir("/content/drive/My Drive")
!ls
google has changed to Mydrive and deleted space. so no "My Drive" but "MyDrive os.chdir('/content/gdrive/MyDrive/iss/vse/data/')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With