Answers for "downloading dataset from google drive to colab"

Go
0

kaggle dataset download to google colab

def pull_kaggle_data(username,key):
import json
! mkdir .kaggle
token = {"username":username,"key":username}
with open(".kaggle/kaggle.json", "w") as file:
json.dump(token, file)
! cp .kaggle/kaggle.json ~/.kaggle/kaggle.json


================================================================================
pull_kaggle_data(username,key)
! kaggle competitions download -c malware-classification
Posted by: Guest on August-13-2021
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 "downloading dataset from google drive to colab"

Browse Popular Code Answers by Language