Learn all you need to know about Python and Matplotlib's Bar Graphs, including grouped bar charts, stacked bar charts, customizing bar colors, adding titles and axis labels.
To read the tutorial in written form, check out my post here: https://datagy.io/matplotlib-bar-charts/
✅ Check out my eBook to get started with Python for Data Science: https://gumroad.com/l/introtopythonfo...
Sample Dataframe:
df = pd.DataFrame.from_dict(
{
'Year': [2016, 2017, 2018, 2019, 2020, 2021],
'Men': [300, 320, 310, 305, 325, 330],
'Women': [350, 325, 300, 305, 380, 355],
'Total': [650,645, 610, 610, 705, 685]
}
)
0:00 Introduction
0:53 Loading out dataframe
1:36 Simple Matplotlib Bar Graphs
2:30 Adding Title and Labels to Matplotlib Bar Graphs
3:59 Changing Matplotlib Bar Graph Colors
4:25 Changing Bar Colours Conditionally
7:09 Matplotlib Horizontal bar charts
8:00 Matplotlib Bar Charts widths
9:10 Grouped Bar Charts in Matplotlib
11:55 Adding Legends to Matplotlib Bar Charts
13:18 Stacked Matplotlib Bar Charts
14:42 Proportional Stacked Bar Charts in Matplotlib
16:18 Styling Bar Charts in Matplotlib
17:37 Conclusion
Learn Python programming the right way!
----------------------------------------------------------
✅ Follow me on other platforms:
Website: https://datagy.io
Twitter: / datagyio
Mailing List: https://mailchi.mp/f6a58f2d73d0/datag... (and get a FREE Pandas tip and tricks book and a FREE Guide to SQL)
Watch video Bar Charts in Python & Matplotlib Tutorial - Grouped Bar Plots, Horizontal Bars and Stacked Bar Plot online without registration, duration hours minute second in high quality. This video was added by user datagy 23 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,732 once and liked it 75 people.