I am getting error while downloading dataset

I am getting error while downloading dataset. I have uploaded a screenshot of of it.
Please help!

1 Like

Hi Shweta!
Welcome to community!
First of all thankyou as I didn’t knew there was any such package like opendatasets which can easily import datasets from Kaggle. I searched a lot online. Now if you will check about the package here you will see there has to be a variable declared with the download URL of the dataset. I’m not sure as to why it is mandatory but I ran the code and it didn’t give me any error. Hope this solves the issue.

   import opendatasets as od
   dataset_url = 'https://www.kaggle.com/tunguz/us-elections-dataset'
   od.download('https://www.kaggle.com/tunguz/us-elections-dataset')
1 Like

Thank you so much!!!

1 Like