Giter Site home page Giter Site logo

hkair / nba-shotcharts Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 12.0 77.75 MB

Shot Chart, Hexmap and Heatmap for NBA.com. FlightsReact.

Shell 0.01% PowerShell 0.01% Python 97.77% Jupyter Notebook 1.33% JavaScript 0.05% CSS 0.01% HTML 0.06% C++ 0.20% C 0.47% Fortran 0.02% Smarty 0.01% Makefile 0.01% MATLAB 0.01% TeX 0.06%
shot-chart nba hexmap nba-shotcharts heatmap python

nba-shotcharts's Introduction

NBA Shot Charts (Inspired by FlightReacts)

This is my kind of project. I'll get this done by June. All jokes aside, this is a my attempt to create a shot chart, hexmap, and heatmap. All complete functions are contained in the jupyter notebook.

Here's a link to the youtube tutorial: https://youtu.be/a3u-3gEYvxM

Getting Started

First, clone the repository.

git clone https://github.com/hkair/nba-shotcharts.git

Prerequisites

cd .. into repository

Installing

A step by step series of examples that tell you how to get a development env running

  1. Activate the environment
source env/bin/activate
  1. Install dependencies.
pip install requirements.txt 
  1. Run nba_shotcharts.py
python nba_shotcharts.py "Michael Jordan" "1997-98"

Acknowledgments

nba-shotcharts's People

Contributors

hkair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nba-shotcharts's Issues

-r requirements

on the readme:
pip install requirements.txt

should be:
pip install -r requirements.txt

excellent work on the api. appreciate it man

FGs % below the shot chart

Hey man, great work here, inspired by you, I am creating an simple graphic interface where the user can place the name of the player, select the season and generate the shot chart, the image below just to illustrate.

shotchart

I was just wondering if there is a way to display the player's FGs% (like fg%, 3pt% and ft%) below the shot chart? Maybe on the x-axis label or something like that. I think it would be a great addition to the shot chart, because sometimes just by looking you can't really see if the player had a high or low percentage. And since I don't really know much about these python modules, I thought to ask you.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.