Okay, so the other day I was watching some NBA highlights and got into a debate with a buddy about who the shortest center in the league is. I mean, we all know centers are usually giants, right? So finding the shortest one felt like a fun little challenge.

Digging into the Data
First, I fired up my laptop and started searching the internet. At first, I found some news articles and blog posts, but I need a way to get the actual data. So I tried different keywords to get players’ height information, but it’s not a good method.
Then I suddenly get an idea, I can write some python code to get the players’ height by myself!
- First I write a function to get all players’ name in this season.
- Then I used another function to search every player and get their height.
- Finally I filtered these players, only the centers are left.
It took me a couple of hours to make this, but it did work. I successfully get what I want, I can clearly see every center player’s height of this season!
My Conclusion
After I ran the python code, I successfully got the information I need.

It’s a fun experience to get the conclusion, writing and running codes make things simple!