Answers for "how to import 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
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 "how to import data from drive to colab"

Python Answers by Framework

Browse Popular Code Answers by Language