Hey Reader, You won't get noticed unless you are solving real-world business problems.
Pretty simple. The hard part is knowing where to start. It can be super easy though. Right now, millions of businesses are getting flooded with retail transaction data. Why? Because it's "Black Friday" and "Cyber Monday" -- the busiest shopping period of the entire year. And this can be your golden opportunity. If you have the expertise.
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. Follow these exact steps to get noticed This tutorial walks you through creating an interactive dashboard with Python and Dash. It's the perfect solution to the problem that so many business owners are facing today. And you can be the person that solves that painful problem for them. Which all but guarantees your promotion. 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 Environment and Load Your DataFirst, set up your environment, load your data, and take a peek at what's inside. This step is crucial to understand the structure of your dataset. 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: Clean and Prepare Your DataData cleaning is vital. Next, ensure your data is in the right format, handling any missing or incorrect values.
Step 3: Quickly Visualize Your DataNext, let's take a look at the data we have visually. This helps to see what might be interesting or if there are any problems with the data set before moving on to build the dashboard. Here are some ideas:
And here's the code:
Step 4: Build the Interactive Dashboard with DashNow that we're comfortable with the data, let's combine the visualizations into a comprehensive and interactive dashboard using Dash. There's a lot of code here, but let's break it down.
I've added comments to make it easier to follow.
Step 5: Start up the DashboardFinally, let's run the Dash app to see our interactive dashboard and share it with the world!
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, 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...
Hello Reader, Almost every business question boils down to one of two things: "How many?" (COUNT) "How much?" (SUM) How many customers booked this month? How much revenue did we generate? How many trips were cancelled? How much did we lose? Once you're comfortable with COUNT and SUM, you can answer the majority of questions that come your way (like sales analytics using SQL). Let me show you both patterns using a real business scenario. The Scenario Your operations manager asks: "Give me a...