Python library for interacting with NFL play-by-play, player stats, and fantasy data sourced from nflfastR. Version 0.3.3 supports Python >=3.6.0, provides cached CSV imports to avoid redundant downloads, and is released irregularly on PyPI.
pip install nfl-data-pyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Downloads cached NFL play-by-play and weekly data for given seasons. Data is pulled from nflfastR's GitHub releases.
Replace `nfl.import_seasonal_data(years)` with `nfl.import_weekly_data(years) if you want player-level weekly stats, or `nfl.import_pbp_data(years)` for play-by-play.
Run `import nfl_data_py as nfl; nfl.clean_cache()` to clear cache before re-downloading.
Before using `columns` argument, verify it is listed in the function signature (e.g., `help(nfl.import_weekly_data)`).
No dependency data recorded yet.