Data paralysis is a nightmare. It leads to only two outcomes:
Instead, decision-makers need real insights at their fingertips. And you can help bring those insights to life by creating interactive dashboards. Manual data crunching wastes valuable time. There's a better way to handle complex data. Turning massive amounts of data into meaningful dashboards that are visually appealing and easy to use. The best part is that it can be done using free tools: Python and Dash. And you don't have to install anything, either. Imagine what this means for you:
By the way, if you haven't snagged your copy of The Data Analytics Portfolio Playbook, now's the time! Get up and running in two weeks or less. Data visualizations are awesome for your portfolio. The playbook includes everything you need to create an awesome portfolio -- including how to host for free. Here's a specific example of what's possible when you follow the proven playbook. Your step-by-step guide to getting it done This tutorial walks you through creating an interactive dashboard with Python and Dash. This kind of thing is PERFECT for a data analytics portfolio project. And it will work for any dataset or industry. Even yours. If you're using Excel for reports and dashboards today, give Python a chance. Don't sleep on the power of automating your data analytics work! Here's what we're building today (click here if you can't see the gif below) Alright, let's create this thing. Step 1: Set Up Your EnvironmentFirst, prepare your Google Colab environment by installing the necessary libraries. Paste this code into a new Google Collab notebook cell and run it. You can use my notebook to help you get started.
Step 2: Load and Inspect DataLoad your CSV file and get a feel for how it's built and what's inside. By the way, we're using the Hospitality data set from the fantastic Real World, Fake Data project (thanks Mark!)
Step 3: Data Cleaning and PreparationBefore diving into Dash, let's clean and prepare the data for analysis.
Here's the code:
Step 4: Create Interactive PlotsNow that we have a good sense of the data let's use Plotly to create interactive visualizations of your data. We're creating 4 charts for the dashboard:
These 4 charts will give managers quick insights into the most important parts of their business.
Step 5: Build Your DashboardNow that we have our charts and graphs (Plotly calls these 'figures'), let's assemble the pieces into an interactive dashboard using Dash. This might seem like a lot of code, but a lot of it is styling so that our final product looks awesome. Let's add one for each graph to update our dashboard based on the start and end date that the user chooses:
Step 6: Launch and ShareFinally, let’s run our app! Add this at the end of your notebook:
Here's what you'll see in Google Colab: (click here if you can't see the gif below) Looks great! Try it on your own: If you made it this far, congratulations! Share a copy with me via email or on x/Twitter.
Did this tutorial help? Hit reply and let me know or fill out this quick survey. Until next time, keep exploring and happy visualizing! Brian Whenever you're ready, here's how I can help you:
|
You are receiving this because you signed up for Starting with Data, purchased one of my data analytics products, or enrolled in one of my data analytics courses. Unsubscribe at any time using the link below. 600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246 |
Learn to build analytics projects with SQL, Tableau, Excel, and Python. For data analysts looking to level up their career and complete beginners looking to get started. No fluff. No theory. Just step-by-step tutorials anyone can follow.
Hey Reader, Over the past few weeks, I’ve shown you The Mister Rogers Blueprint in action using Summit Adventures, the fictional adventure travel company I built for teaching. You’ve seen real queries. Real business insights. Real data quality issues. Today I want to tell you why I built it this way. Because the reason matters more than you might think. The endless tutorial hamster wheel of death You know the pattern. You watch a Udemy course. It makes sense. The instructor shows you SELECT,...
Hey Reader, Last week I showed you The Mister Rogers Blueprint, the step-by-step guide to approaching unfamiliar dataset and delivering actionable insights. You might be thinking: “Okay, cool framework. But does this actually work?” Fair question. Let me show you what happens when people learn SQL this way. First, let’s talk about what doesn’t work. Jenn (a student and data coaching client of mine) paid $2,500 for an SQL course from an Ivy League university. She thought it would be robust,...
Hey Reader, Remember Mister Rogers? "Won't you be my neighbor?" That show taught me back in the day (and my now-grown kids more recently) along with millions of others young and old how to approach new situations with curiosity instead of fear. Turns out, that's exactly the mindset you need when someone drops an unfamiliar database on your desk. Here's the situation every analyst will face: You start a new job or project. Your manager says "Pull the customer data for Monday's meeting." You...