Getting kaggle dataset into colab

Everyone once must have tried to directly use the dataset from kaggle without downloading the datasets from the kaggle. For any data science lover colab is the most easiest place to work on. The free tier provided for Colab certainly helps the developers around the globe though she\he is an alien.


must have google and kaggle account

must know to spell goooogle if not follow below::

watched this

okay!! if you have continued and passed test… continue………….

go to your account section and below you’ll see ..

generate new api with create options

A kaggle.json file will be downloaded further on.

from google.colab import drive


follow the link and paste to authorize

after mounting

Step 4: Run below and provide configuration path to json file

/content/gdrive/My Drive/Kaggle is the path where kaggle.json is present in the Google Drive

From the kaggle copy api command and run the command similar to below

! kaggle datasets download -d………………….

#unzipping the zip files and deleting the zip files

!unzip \*.zip && rm *.zip

Now you have the csv files.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store