Skip to main content

Custom Metric Created for the NBA by Strictly By The Numbers

Project description

Player Metrics:

This repository contains the source code for the #StrictlyBytheNumbers PlayerMetric module. The PlayerMetric module attempts to provide key player metrics that could be then leveraged in a variety ways for a multitude of downstream baskebtall applications.

open source, you can publish by

  • 1.) Change the version number in setup.py then publish
  • 2.) python setup.py sdist
  • 3.) twine upload --skip-existing dist/*

Installation:

  • 1.) Install python package depedencies.
$ pip install strictly-metric -U

Example Usage:

# Import python package
from player_metric import player_metric

# Instantiate player object
player_object = player_metric.PlayerMetric(df_all=df_all, df_boxscore=df_boxscore)

# Calculate aggregate and per game metrics for the player, based on df_all and df_boxscore.

player_object.calculate_aggregate_metric()
player_object.calculate_per_game_metric()

# Examine transformed data 

player_object.df_all.head()
player_object.df_boxscore.head()

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

strictly-metric-1.0.13.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file strictly-metric-1.0.13.tar.gz.

File metadata

  • Download URL: strictly-metric-1.0.13.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for strictly-metric-1.0.13.tar.gz
Algorithm Hash digest
SHA256 ce150dfc76e1c0786b0979e95825d38efc5c6c22353d6d60bc799614071aac2e
MD5 44612f5fe3e9c4fc74a6d6f9bda5307c
BLAKE2b-256 d64408a40dad2dd5c88604563e4a9c63bb6111dd67f115482b80747ada166d45

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