Skip to main content

Data package for Introduction to Sports Analytics using Python

Project description

ISAPy

Data package for Introduction to Sports Analytics using Python by Ryan Elmore.

Installation

pip install isapy-data

For development:

pip install -e ".[dev]"

Usage

import isapy_data

# List all available datasets
isapy_data.list_datasets()

# Load a dataset
masters = isapy_data.load_data("masters")

# Get information about a specific dataset
isapy_data.describe("masters")

# Print info about all datasets
isapy_data.info()

Available Datasets

Golf

  • masters - Masters Tournament data
  • ow_golf_rankings - Official World Golf Rankings
  • pga_tournaments - PGA Tour tournament data

NBA

  • nba_adv_team_2021, nba_adv_team_2023, nba_adv_team_2024, nba_adv_team_2025 - Advanced team statistics
  • nba_ff_team_2021, nba_ff_team_2023, nba_ff_team_2024, nba_ff_team_2025 - Four factors team statistics
  • nba_games_2021, nba_games_2023, nba_games_2024, nba_games_2025 - Game results
  • nba_nuggets_shots - Denver Nuggets shot location data

NHL

  • avs_roster_2021, avs_roster_2022 - Colorado Avalanche roster data
  • avs_stats_2021, avs_stats_2022 - Colorado Avalanche player statistics
  • nhl_data_hockey_reference - NHL data from Hockey Reference
  • nhl_team_stats_2021, nhl_team_stats_2022 - NHL team statistics

English Premier League

  • epl_gk_stats_2022 through epl_gk_stats_2025 - Goalkeeper statistics
  • epl_player_stats_2022 through epl_player_stats_2025 - Player statistics
  • epl_team_stats, epl_team_stats_2023, epl_team_stats_2024, epl_team_stats_2025 - Team statistics

NWSL

  • nwsl_player_stats, nwsl_player_stats_2023, nwsl_player_stats_2024 - Player statistics

DraftKings

  • dk_edm_col - Edmonton vs Colorado
  • dk_lac_dal - LA Clippers vs Dallas
  • dk_mem_utah - Memphis vs Utah
  • dk_nyr_car - NY Rangers vs Carolina

Development

Exporting Data from ISAR

To export data from the R package ISAR to CSV format:

Rscript scripts/export_rda_to_csv.R

Building the Package

python -m build

Publishing to PyPI

python -m twine upload dist/*

License

MIT

Citation

If you use this data in your research, please cite:

Elmore, R. (2025). Introduction to Sports Analytics using Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isapy_data-0.1.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isapy_data-0.1.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file isapy_data-0.1.0.tar.gz.

File metadata

  • Download URL: isapy_data-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for isapy_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b31d4cf1b385ce9e879b88f73b28618ed2d430614687fef45fd0910f7fdb8aab
MD5 6561a227dfe24d828169274f6d535525
BLAKE2b-256 620615744c71004e4300c4edb1d620a65ce480ac8275f0f66ffc899d5639501d

See more details on using hashes here.

File details

Details for the file isapy_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: isapy_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for isapy_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e30d2e529712d1237bc4265b0e5f11109be762b002f15799697b9a984565f7a
MD5 7e74e17c258c98a336c685a727b448cf
BLAKE2b-256 18403756e75acf14e07628945521b52583c3dd78e1c501d460b47852ed612335

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page