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)
On this page of the site you can watch the video online Bar Charts in Python & Matplotlib Tutorial - Grouped Bar Plots, Horizontal Bars and Stacked Bar Plot with a duration of hours minute second in good quality, which was uploaded by the user datagy 23 February 2021, share the link with friends and acquaintances, this video has already been watched 3,732 times on youtube and it was liked by 75 viewers. Enjoy your viewing!