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, Most analysts can't answer something like this: "Which of our guides are generating the most revenue, and are we assigning them to the right expeditions?" This isn't a one-step question. You need to: Calculate revenue per guide Look at which expedition types they're assigned to Compare guide revenue to expedition category performance Identify mismatches (top guides on underperforming products, or vice versa) That's four analytical steps. Trying to write this as a single SQL query...
Hey Reader, Quick question: Could a colleague open your most recent SQL query and understand what it does without asking you a single question? If the answer is "probably not," this newsletter is for you. Writing SQL that works is step one. Writing SQL that someone else can read, trust, and maintain β that's the skill that changes how people see your work. Why This Matters More Than You Think Here's what I've noticed over 15+ years in analytics: the analysts who get promoted aren't always the...
Hey Reader, Imagine you're presenting a finding to your team: "Customer A spent $4,200 with us." The first question from the room: "Is that a lot?" Most analysts learning SQL don't realize that, without context, the number means nothing. You need comparison. Is the average customer spend $500 or $5,000? Is $4,200 in the top 10% or the middle of the pack? This is the "compared to what?" problem, and subqueries solve it elegantly. Numbers without context don't drive decisions. Executives don't...