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.
Quick note: Before you read this week's newsletter, can you fill out this 5-minute subscriber survey so I know what you want to know more about? I've got a mix of SQL and AI & Agentic Analytics right now. Thanks in advance! Hello Reader, A manager sends you a database login and says, "Can you pull a few customer insights before Friday." You connect to the database and you pause: Because, as a business analyst, there are two ways to respond: Panic and start feverishly writing the SQL, joining...
Hello Reader, This week's newsletter is different. No SQL code. No database queries. I lead a team of 30 data professionals, and we use tools like Claude and Copilot to get oriented, draft, review, and explain routine analysis. The useful part is moving faster without handing over the judgment your team relies on. We call this "human in the loop". Agentic Analytics means using AI as part of your analytical process: give it context, check its work, and keep responsibility for the decision. I...
Hello Reader, Real quick: if you haven't completed this subscriber survey -- now's your chance. Most people are looking to learn more about Agentic Analytics and AI topics. I want to build something that would be useful to you, based on the work I've been doing for the past year or so. Interested? Take 5 minutes to let me know what's on your mind. Take the 5-Minute Survey Now π Imagine it's your first week at a new job. Someone from IT sends over database credentials and a two-line email:...