Skip to content

cambridge-FDS/ps_2_ex3_database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS 2 Ex 3

Setup

Envrionment

Install the required packages by running:

conda env create -f environment.yml

Activate the environment by running:

conda activate solution_ps2_ex3_database

Pre-commit

This repository uses pre-commit to run some checks before each commit. To install pre-commit, run:

pre-commit install

To run the checks manually, run:

pre-commit run --all-files

Getting the data

  1. create a Kaggle account: https://www.kaggle.com/
  2. get API keys and user name
    • Go to your account, and click on your profile in the top right
    • Then click on "Settings"
    • Scroll down to the API section and click on "Create New Token"
    • Get your username and API key from there

We have written a data loader function for you in the "nba/data_loader.py".This allows you to download the data with by running the script from the terminal. Run the following command in the terminal being at the root of the repository.

python nba/data_loader.py -u "your_user_name" -k "your_api_key" -d "wyattowalsh/basketball"

Replace "your_user_name" and "your_api_key" with your username and API key. This creates a json file at "~/.kaggle/kaggle.json" with your username and API key, which is used to authenticate your account and download the data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published