Recently, I stumbled on this wonderful Python package called nba_api, which can be found here, that serves as a very simple API client to retrieve stats from www.nba.com. I have personally always wanted to create player shot charts like ones found online, but gathering the shot location data seemed like a daunting task. This is where nba_api comes to the rescue! First, let’s install the package:
pip install nba_api
Now that we have installed nba_api we can now import all the packages we will need to produce our own shot chart.

#basketball #data-science #python #sports #data-visualization

Make a Simple NBA Shot Chart with Python
9.05 GEEK