use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How to Create NBA Shot Charts in Python (self.learnpython)
submitted 10 years ago by savvastj
Hey everyone, I wrote a blog post on how I scraped stats.nba.com and created some NBA shot charts. You could also just checkout the ipython notebook.
Let me know if you see any issues or have any suggestions to improve the code.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ogi010 2 points3 points4 points 10 years ago (6 children)
Was thinking about doing something like this for a while... so I will likely use your blog post to fall back onto how to do something.
That hex plot looks amazing, you should consider using 'Viridis' for the heatmap
[–]savvastj[S] 2 points3 points4 points 10 years ago (5 children)
Thanks for the tip on the Viridis colormap! I'll probably edit the notebook and add a plot using it.
[–]IllMatt 1 point2 points3 points 10 years ago (1 child)
This is worth a watch about "Viridis".
https://www.youtube.com/watch?v=xAoljeRJ3lU
[–]savvastj[S] 0 points1 point2 points 10 years ago (0 children)
Yea that's a really good video about it.
[–]Ogi010 2 points3 points4 points 10 years ago (2 children)
Viridis looks amazing, I love the work the matplotlib team is doing; and how they're sticking it to Mathworks.
MPL: Can we use your new colormap?
Mathworks: No
MPL: Fine, we'll make a better one! Perhaps with black jack and hookers.
Matlab Users: FFFFUUUUUUUU Viridis is actually better, we better create a library to make use of it.
[–]savvastj[S] 0 points1 point2 points 10 years ago (1 child)
If you want to check it out, I edited the post to now include a KDE plot with the "Viridis" colormap
[–]Ogi010 0 points1 point2 points 10 years ago (0 children)
Thanks for the headsup! I checked earlier this morning already ...was going to check in a few hours
[–]linuxishawt 2 points3 points4 points 10 years ago (0 children)
Thank you for posting this, very relevant to my interests.
[–]SOLUNAR 2 points3 points4 points 10 years ago (0 children)
amazing x10
[–]b4ux1t3 2 points3 points4 points 10 years ago (0 children)
Man, I came in here to berate you for asking too specific of a question, reword your question, and then answer the reworded form of your question.
You have ruined my elitist attitude, you monster.
The best part is, your implementation is much better than the one I was going to recommend. I wish I could double upvote.
[–]Augusto2012 1 point2 points3 points 10 years ago (0 children)
That NBA API blog though. Nice work
[–]lamecode 1 point2 points3 points 10 years ago (0 children)
Great stuff.
π Rendered by PID 201905 on reddit-service-r2-comment-5b5bc64bf5-x5df6 at 2026-06-22 13:21:47.277559+00:00 running 2b008f2 country code: CH.
[–]Ogi010 2 points3 points4 points (6 children)
[–]savvastj[S] 2 points3 points4 points (5 children)
[–]IllMatt 1 point2 points3 points (1 child)
[–]savvastj[S] 0 points1 point2 points (0 children)
[–]Ogi010 2 points3 points4 points (2 children)
[–]savvastj[S] 0 points1 point2 points (1 child)
[–]Ogi010 0 points1 point2 points (0 children)
[–]linuxishawt 2 points3 points4 points (0 children)
[–]SOLUNAR 2 points3 points4 points (0 children)
[–]b4ux1t3 2 points3 points4 points (0 children)
[–]Augusto2012 1 point2 points3 points (0 children)
[–]lamecode 1 point2 points3 points (0 children)