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.
Hello Reader, A while back, I shared some tips about formatting SQL output for spreadsheets. Today we're going the other direction. Doing the kind of analysis that makes spreadsheet formulas feel clunky. Here's the kind of request that analysts get every single day: "Show me monthly revenue and how the trend is moving." If you pull monthly revenue into a spreadsheet, you'd probably create a running total column, then a 3-month moving average column, then a month-over-month change column....
Hello Reader, Here's a fact of analyst life: most of the people who use your analysis will never use SQL. Instead, they'll use spreadsheets and reports. Your director doesn't open pgAdmin. Your marketing team doesn't "connect to the database". They open the Excel file or Google Sheet you sent them. And if the data you exported requires 20 minutes of cleanup before it's usable (reformatting dates, splitting columns, fixing number formats) you've done extra work that didn't need to happen....
Hello Reader, Most analysts panic when they get a note like this on a random Tuesday afternoon (from the CEO): "Revenue feels off this quarter. Can you figure out what's happening before the board call at 4:30?" Great. You have 90 minutes. No time to build a comprehensive analysis. No time to make it pretty. You need to diagnose the problem (super fast) and deliver a clear answer. Lucky you. You're going to learn the way a seasoned pro handles this situation. I call it The Gordon Ramsay...