Data dowload issue

I am facing difficulty in downloading the kaggle data in my colab folder.

Hello @Prianka_Muralidharan ,

Welcome to the Community!!

Btw you don’t have to download any kaggle dataset for the graded assignment of Course 2 week 1.
Just run the pre-coded cell to download the dataset.

And If you want to know how to load kaggle dataset into your colab, apart from the assignment, I am writing here 2 processes.

Do the following :

Process 1:

  1. Download and unzip it.
  2. Upload the file to your drive
  3. Mount your google drive and authorize colab to access files from google drive.
from google.colab import drive
drive.mount('/content/drive')
  1. Then load the file using the file path.

Process 2:

  1. In kaggle, Go to your profile and click on account.
  2. Under A PI section, click on “Create New API Token” will download a kaggle.json that has your username and key.
  3. On colab, write : ! pip install -q kaggle
  4. from google.colab import files
    files.upload()
    Upload the json file
  5. !mkdir -p ~/.kaggle
  6. !cp kaggle.json ~/.kaggle/
  7. !chmod 600 /root/.kaggle/kaggle.json
  8. !kaggle datasets download -d " your dataset "
  9. !ls
  10. !mkdir “any name”
  11. !unzip “file name”

Hope this helps.

With regards,
Nilosree Sengupta