How to create NBA shot charts in Python
savvastjortjoglou.com
How to create NBA shot charts in Python
1–10 of 29 posts
Re: How to create NBA shot charts in Python
#2...or if you're in the beta, here: https://www.statmuse.com/nba/search?q=michael%20jordan%20sho...
Re: How to create NBA shot charts in Python
#3Re: How to create NBA shot charts in Python
#4Re: How to create NBA shot charts in Python
#5http://www.basketball-reference.com/players/h/hardeja01/shoo...
http://www.basketball-reference.com/play-index/plus/shooting...
Re: How to create NBA shot charts in Python
#6Re: How to create NBA shot charts in Python
#7I wonder how does NBA generates these data (X, Y position and shot attempts), if it's manually input from video or something smarter
Re: How to create NBA shot charts in Python
#8The heat maps are much less useful IMO, because the colors are poorly chosen and the data generalization/binning methods seem kind of arbitrary. Until the shot count gets up into the tens of thousands or more, just show all the data. (If e.g. aggregating all the shots from the whole league, then some kind of binning would become necessary.)
The marginal histograms showing density by x/y coordinates on the court are essentially useless in my opinion. Dramatically more interesting would be marginal histograms related to angle and distance in terms of polar coordinates centered at the basket (it might be necessary to ignore the angles for positions very close to the basket, where angle is kind of irrelevant). To make them even more informative, since the 3 point line isn’t a perfect semicircle, make marginal distributions (in terms of angle and distance) of separate categories of 2 point and 3 point shots, and stack them. Or even three categories showing dunks/layups, 2 point jump shots, and 3 point jump shots.
Re: How to create NBA shot charts in Python
#9Statmuse.com has a really nice implementation of this in their natural-language sport statistics engine. You can see an image here http://i.imgur.com/ukganMx.png ...or if you're in the beta, here: https://www.statmuse.com/nba/search?q=michael%20jordan%20sho...
Looks like they're translating natural-language into some sort of query language. Are there any well-known methods for doing this kind of thing?
Re: How to create NBA shot charts in Python
#10We include shot charts on Basketball-Reference.com and allow for side-by-side comparisons as well. http://www.basketball-reference.com/players/h/hardeja01/shoo... http://www.basketball-reference.com/play-index/plus/shooting...