Skip to main content

Package for working with NFL data

Project description

nfl_data_py

nfl_data_py is a Python library for interacting with NFL data.

Installation

Use the package manager pip to install nfl_data_py.

pip install nfl_data_py

Usage

import nfl_data_py as nfl

Working with play-by-play data

nfl.import_pbp_data(years, columns)

Returns play-by-play data for the years and columns specified

years : required, list of years to pull data for (earliest available is 1999)

columns : optional, list of columns to pull data for

nfl.see_pbp_cols()

returns list of columns available in play-by-play dataset

Working with weekly data

nfl.import_weekly_data(years, columns)

Returns weekly data for the years and columns specified

years : required, list of years to pull data for (earliest available is 1999)

columns : optional, list of columns to pull data for

nfl.see_weekly_cols()

returns list of columns available in weekly dataset

Working with seasonal data

nfl.import_seasonal_data(years)

Returns seasonal data, including various calculated market share stats

years : required, list of years to pull data for (earliest available is 1999)

Importing roster data

nfl.import_rosters(years, columns)

Returns roster information for years and columns specified

years : required, list of years to pull data for (earliest available is 1999)

columns : optional, list of columns to pull data for

Additional features

nfl.clean_nfl_data(df)

Runs descriptive data (team name, player name, etc.) through various cleaning processes

df : required, dataframe to be cleaned

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

nfl_data_py-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

nfl_data_py-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file nfl_data_py-0.1.1.tar.gz.

File metadata

  • Download URL: nfl_data_py-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for nfl_data_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d027a673825eef95be1fabef8273ef5b0119daad83d17a68d43b9e093af5df5
MD5 2e0029999835c9b48215c8609b1c0ab2
BLAKE2b-256 add4938775b22fdcd3e0363755e071f9739c101bea13b6b72a7c468fc8857226

See more details on using hashes here.

File details

Details for the file nfl_data_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nfl_data_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for nfl_data_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9df0d6a4e3ca0f64048cfbe5242c653e1f005b2127cf5e7e63d1efbddc3a7f34
MD5 4f09fe901ce176dfe1c94b5f14c3e064
BLAKE2b-256 f713f65541a3096abef600142e97649529138545a6fcbd3d82bb4e5ce06df279

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