Data visualization is a huge topic. And if you're not using it in your work, you're missing out. 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. This is because it's MUCH better to show your work than not to. Quick results without cumbersome business intelligence tools. Don't get me wrong: I love Tableau. But there's a problem: Most people think you have to have a tool like Tableau to create interactive dashboards. And that's not true. You can create a "quick and dirty" interactive dashboard with Python and Plotly.
Python + Plotly makes your work shine. Sure, you can use Excel to create bar charts. And sometimes Excel is the right tool for the job. But there are times when you don't want to:
The step-by-step process to work faster and easier. In this guide, you will learn:
Before we get started, make sure you have Google Colab set up and ready to go. You can follow along using this Python Notebook as a template to guide you. Alright, let's visualize! Step 1: Gather and Inspect Your DataFirst things first, let's import the libraries we'll use. Paste this code into a new Google Collab notebook cell and run it.
Step 2: Clean and PrepareNow that the data is loaded and is looking good, let's clean it up. In this step, we convert the date column to a datetime type and clean up any missing or invalid data.
Step 3: Trend AnalysisBefore we create the interactive dashboard, take a look at the data in a simple chart just to make sure things are looking good and our date columns are all set for visualization. This step is technically optional but good to prevent you from having to troubleshoot later down the road.
Step 4: Dig Deeper into CategoriesNow that we have a trend line, let's dig a bit deeper to get counts for different categories. This is a quick step, but it shows the flexibility of Python. You can update this to count anything in the data set and then visualize it in the next steps.
Step 5: Combine the charts into an interactive dashboardNext, let's take the visualizations and put them into a dashboard. This is a big step and there's a lot going on. But let's break it down, step by step:
And here's the code:
Step 6: Showcase Your WorkFinally, let's create the dashboard file for easy viewing:
Here's where to find it in Google Colab: And here's the final result -- well done! (Click here if you can't see the animated GIF below) Great job! The idea for this newsletter came directly from a reader β just like you! βTake 3 minutes to let me know what you want help with next.β 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:...