Create Time Series Animations in Python with Matplotlib! (Bar Chart Race) @KeithGalli
Create Time Series Animations in Python with Matplotlib! (Bar Chart Race)  @KeithGalli
Uploaded November 2024 | Updated November 2026, 3 hours ago
Learn how to create fun animated bar chart races in Python using matplotlib! This tutorial walks through building population trend visualizations from scratch, covering data processing, basic plotting, animation techniques, and styling improvements. Perfect for anyone interested in data visualization who wants to recreate those engaging animated charts you've seen online. We'll turn static data into dynamic visualizations using just Python and matplotlib.

Link to Code:
github.com/KeithGalli/time-series-animations

Link to Dataset:
population.un.org/wpp/Download/Standard/MostUsed

Video Timeline!
0:00 - Video Overview
1:01 - Step 0.) Find a Dataset to Use (link in description)
1:43 - Step 1.) Initial Data Processing/Cleaning
5:17 - Step 2.) Plot Static Bar Chart using Matplotlib
8:27 - Step 3.) Create animation using Matplotlib FuncAnimation & Save it as mp4 video
15:39 - Step 4.) Improve Formatting & Styles

#python #matplotlib #datavisualization

-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli
TikTok | tiktok.com/@keithgalli

-------------------------
Learn data skills with hands-on exercises & tutorials at Datacamp!
datacamp.pxf.io/c/3588040/1012793/13294

Practice your Python Pandas data science skills with problems on StrataScratch!
stratascratch.com/?via=keith

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
Create Time Series Animations in Python with Matplotlib! (Bar Chart Race)How to create & deploy an API in Python! (with interactive documentation)Bubble Sort Explained & PseudocodeSolving Recurrences Example - Binary Search (Master Method)Real-World Dataset Cleaning with Python Pandas! (Olympic Athletes Dataset)Complete Python Turtle Graphics Overview! (From Beginner to Advanced)How to Play Ugolki (Corners)Solving Coding Interview Questions in Python on LeetCode (easy & medium problems)Python Project: Implement a REST API with Flask & Flasgger Libraries!The Most Epic Data Science Tutorial Promo Video!How I became an unemployed MIT grad still living with my parents.How Good are you at Data Science?? (Datacamp Platform Exploration)
Keith Galli |

Create Time Series Animations in Python with Matplotlib! (Bar Chart Race)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER