How to Plot Bar Graph in Python When to Plot Bar Graph

Опубликовано: 15 Октябрь 2024
на канале: Colorstech Training (By Slidescope)
66
2

#dataanalytics #bargraph #python #slidescope

Bar charts should be used when you are
showing segments of information. Vertical bar
charts are useful to compare different categorical
or discrete variables, such as age groups,
classes, schools, etc.,

regions = ['East','West','North','South']
sales = [20120, 28620, 24760, 25780]
profit = [2012, 2862, 2476, 2578]

plt.barh(regions, sales)

Follow this link for details:
https://colorstech.net/data-science-c...