Skip to content

cambridge-FDS/solution_ps2_ex3_database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solution_ps2_ex3_database

This is the solution to PS 2, ex3 database.

Setup

Envrionment

Install the required packages by running:

conda env create -f environment.yml

Activate the environment by running:

conda activate nba

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 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

Then run the following command in the terminal being at the root of the repository. 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. This is used to authenticate your account and download the data.

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

About

This is the solution to PS 2, ex3 database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •