Great video! One comment. When ordering the list you could do like this: ordered_columns = mart['Product line'].sort_values().unique() sns.barplot(y='Product line', x='Total',hue='Gender', data=mart, order=ordered_columns) I think it's more clear.
When you add "hue" parameter to the barplot, shouldn't male and female sales per production line sum up to the grand "Total" for production line? Here for example "Total" for Food&Baverages (6:55) is ca.320, but with division for male/female salesman (8:35) is ca. 370 per male and 280 per female, which sums up to ca.590. Does it even make sense?
It could be because of data, possibly the data you are using, doesn't have any error(not sure), I would rather suggest to try this once for another dataframe
Here you can get whole list of palletes - seaborn.pydata.org/generated/seaborn.color_palette.html#:~:text=Possible%20palette%20values%20include%3A,'husl'%20or%20'hls'
Is there any good ideas to display the values of the error on barplot? I could find only "ax.bar_label(ax.containers[0])" in the website for showing estimators, not errors.
Few more doubts - 1. What's the difference between bar plot and count plot ? 2. How to create multiple bar plots using FOR LOOP. 3. How to text wrap the axis labels ? 4. Explain how to create SUBPLOTS.
Great video!
One comment. When ordering the list you could do like this:
ordered_columns = mart['Product line'].sort_values().unique()
sns.barplot(y='Product line', x='Total',hue='Gender', data=mart, order=ordered_columns)
I think it's more clear.
good one
Deserve more views , very well explained ..
I'm Glad you liked it
Very informative video...Thank you...
Glad it was helpful!
When you add "hue" parameter to the barplot, shouldn't male and female sales per production line sum up to the grand "Total" for production line? Here for example "Total" for Food&Baverages (6:55) is ca.320, but with division for male/female salesman (8:35) is ca. 370 per male and 280 per female, which sums up to ca.590. Does it even make sense?
Please make a video on how to text wrap the labels on x -axis.
Sure
how do you display error bars on a barplot, when i plot my barplots they do not have error bars. However I want them to
It could be because of data, possibly the data you are using, doesn't have any error(not sure), I would rather suggest to try this once for another dataframe
in the palette , it doesn't show suggestions of colors now, how we can get suggestions of colors ?
Here you can get whole list of palletes -
seaborn.pydata.org/generated/seaborn.color_palette.html#:~:text=Possible%20palette%20values%20include%3A,'husl'%20or%20'hls'
Is there any good ideas to display the values of the error on barplot? I could find only "ax.bar_label(ax.containers[0])" in the website for showing estimators, not errors.
Hi FOCUSED,
That would requrie us to make another video, which we will do in sometime, keep an on the channel
03:48
Few more doubts -
1. What's the difference between bar plot and count plot ?
2. How to create multiple bar plots using FOR LOOP.
3. How to text wrap the axis labels ?
4. Explain how to create SUBPLOTS.
Interesting Doubts, will try to post the solution
bra...barplot 😂
yeah.. that was literally a disastrous tongue slip...........
I thought it was just me!