How to make grouped bar charts in pandas/Python with crosstab and pivot tables and more

preview_player
Показать описание
Building grouped bar charts in pandas can be a pain, since you need to understand how .plot() and matplotlib work *AND* get your data formatted correctly first. This video explains how .plot() works, what columns/rows do when plotting, and how to reshape or reorganize your data into a grouped-bar-chart-friendly format - we look at pivot_table, groupby + value_counts + reset_index or unstack, and crosstab. Not in-depth, but probably enough to tackle what you're trying to do!

Other recommended graphing libraries:

Рекомендации по теме
Комментарии
Автор

Thank you Jonathan! The explanation was very clear. Hope your channel goes a long way :)

anirudhvenkataramanan
Автор

dude! do you record your videos in the middle of a jungle?? lots of useful information, with the birds chirping louder than your voice!

RaminAfzali-cn
Автор

Thank you Jonathan .Your explanation was really good . Please upload more videos of pandas.❤🥳👍

k_abhishek
Автор

7:30 ...Is that a car revving in the background? I kept looking out my front window.

briansmith
Автор

Hello. Is there any way to adjust the size of the bars?

noorool
Автор

Hi, how can you add labels to the crosstab bar chart?

sinuhkl
Автор

Can we use the crosstab data to plot the percent stacked bar chart when we have an entry value 0.

ruchinashakya
Автор

Try using plotly for the grouped data, you are going suffer more. I feel sometimes pandas and plotly has no logic, you keep trying until it works by luck!!

BlueSkyGoldSun
Автор

what is the name the bird making that noise?

xpathservice
join shbcf.ru