Answers for "load data from drive to colab"

7

colab mount drive

from google.colab import drive
drive.mount('/content/drive')

#Optional: move to the desired location:
%cd drive/My Drive/DIRECTORY_IN_YOUR_DRIVE
Posted by: Guest on November-10-2020
14

connect google drive to colab

from google.colab import drive
drive.mount("/content/gdrive")
Posted by: Guest on August-06-2020
0

how to import dataset from drive to colab

json_import = drive.CreateFile({'id':'29PGh8XCts3mlMP6zRphvnIcbv27boawn'})

json_import.GetContentFile('sample.json') - 'sample.json' is the file name that will be accessible in the notebook.
Posted by: Guest on April-04-2021

Code answers related to "load data from drive to colab"

Python Answers by Framework

Browse Popular Code Answers by Language