- Kaggle to Pandas
Pulling data from Kaggle to Pandas dataframe.
We'll cover the following
What is Kaggle?
Kaggle is a data science website that provides thousands of open datasets to explore. While it is not possible to pull Kaggle datasets directly into Pandas dataframes, we can use the Kaggle library to programmatically download CSV files as part of an automated workflow.
Fetching data from Kaggle
The quickest way to get set up with this approach is to create an account on Kaggle. Next, go to the account tab of your profile and select “Create API Token.” Download and open the file.
Add these credentials in the keys below as we will use them throughout the course to fetch data from Kaggle. Run the code to make sure the credentials are successfully saved in kaggle.json
.
Get hands-on with 1200+ tech skills courses.