Better Programming

Advice for programmers.

Member-only story

From Data to Dashboard: Visualizing NBA Player Stats With Dash 🏀✨

Maria Mouschoutzi, PhD
Better Programming
Published in
9 min readMay 29, 2023

--

Photo by Markus Spiske on Unsplash

What About Dash?

Throughout my Ph.D., I’ve grown into a great enthusiast of the Dash framework for Python. In the world of data analysis and visualization, Dash is becoming increasingly popular for building interactive web-based dashboards. With its simplicity and flexibility, Dash allows you to easily create and customize data-driven visualizations without requiring extensive web development experience.

In this article, we‘ll explore how to build a simple report in Dash by setting up the necessary environment, importing data, and creating a basic layout. Additionally, we’ll cover how to create interactive elements like dropdowns and charts, all within the Dash framework.

Setting Up the Environment

While not mandatory, it is best to create a virtual environment to isolate the dependencies of your Dash project. This allows us to have a tidy environment and avoid a conflicting package mess. We can create a new environment by doing the following:

# create a new environment for our Dash…

--

--