Python Plotting Tutorial w/ Matplotlib & Pandas (Line Graph, Histogram, Pie Chart, Box & Whiskers)
In this video, we go through several real-world examples of using the Matplotlib & Pandas libraries to visualize data from CSV files. This is a follow-up to my introductory matplotlib video (https://youtu.be/DAQNHzOcO5A). Timeline for what we cover can be found in the comments.
We start by creating line graphs of global gas price data over time. We review how to add a title, x & y axis labels, and scale our graph. We review how to customize the style and size of our charts. Next, we look at the FIFA 19 player data to create a histogram, a couple pie charts, and a box and whisker plot.
If you enjoy this video, make sure to LIKE and SUBSCRIBE 🙂 🙂
If you have any questions or feedback, please let me know in the comments!
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I’ve been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=keithgalli&utm_content=description-only
Link to Source Code & Datasets!
Matplotlib Style Options:
Kaggle Data Link:
0:00 – Intro & Video Overview
2:22 – Load Necessary Libraries & Download Data
3:48 – Line Graph Example (Plotting Data from CSV file)
21:52 – Histogram Example (FIFA Overall Skill Distribution)
29:25 – Pie Chart #1 (Counting data in CSV) – Visualizing Soccer Foot Preferences
36:41 – Pie Chart #2 (More advance Pandas Example) – Weight Distribution of FIFA Players
47:49 – Box & Whisker Plot (Comparing FIFA teams to one another)
1:00:37 – Final Comments
If you are curious to learn how I make my tutorials, check out this video: https://youtu.be/LEO4igyXbLs
*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.