lwadya / nhl_presidents_trophy_curse

Analysis of NHL Presidents Trophy and Stanley Cup winners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NHL President's Trophy Curse

This repository collects regular and postseason National Hockey League data for the purposes of analyzing trends in Stanley Cup wins by President's Trophy winning teams. Regular season data scraped from NHL.com and playoff data from Hockey Reference. This blog post contains a full writeup of findings from the data.

Repository File Hierarchy

  • data - output data generated by code directory files for use as Tableau data sources
    • nhl_presidents_trophy_curse.csv - merged dataset used as Tableau data source
    • playoffs.csv - team playoff data for all seasons in which the President's Trophy was awarded
    • playoffs_exceptions.csv - override data for seasons with special circumstances
    • regular_season.csv - team regular season data for all seasons in which the President's Trophy was awarded
    • team_lookup.csv - lookup table to match long team names from the playoffs data with short team names from regular season data
  • notebooks - Jupyter notebooks files used to clean data and prepare it for use in Tableau
    • assemble_dataset.ipynb - creates final dataset by merging playoffs.csv and regular_season.csv
    • scrape_playoff_data.ipynb - scrapes playoff data from NHL.com
    • scrape_season_data.ipynb - scrapes regular season data from Hockey Reference

About

Analysis of NHL Presidents Trophy and Stanley Cup winners


Languages

Language:Jupyter Notebook 100.0%