Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by www.appliedaicourse.com #
 
PREVIOUS NEXT
Tagged: #kaggle #dataset #download #google #colab
ADD COMMENT
Topic
Name
4+2 =