Python Seaborn - 3 |BAR PLOTS in Python Using Seaborn Library with MEAN, MEDIAN, SUM, COUNT agg

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

ความคิดเห็น • 21

  • @MagnusAnand
    @MagnusAnand 2 ปีที่แล้ว +4

    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.

  • @jitendratrivedi7889
    @jitendratrivedi7889 3 ปีที่แล้ว +2

    Deserve more views , very well explained ..

    • @learnerea
      @learnerea  3 ปีที่แล้ว

      I'm Glad you liked it

  • @dineshrathod7616
    @dineshrathod7616 6 หลายเดือนก่อน +1

    Very informative video...Thank you...

    • @learnerea
      @learnerea  5 หลายเดือนก่อน

      Glad it was helpful!

  • @martajumi.inranbows3285
    @martajumi.inranbows3285 4 หลายเดือนก่อน

    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?

  • @chalmerilexus2072
    @chalmerilexus2072 2 ปีที่แล้ว +2

    Please make a video on how to text wrap the labels on x -axis.

  • @dhruvshah7952
    @dhruvshah7952 3 ปีที่แล้ว +2

    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

    • @learnerea
      @learnerea  2 ปีที่แล้ว

      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

  • @programmingholic
    @programmingholic ปีที่แล้ว

    in the palette , it doesn't show suggestions of colors now, how we can get suggestions of colors ?

    • @learnerea
      @learnerea  ปีที่แล้ว

      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'

  • @focused9227
    @focused9227 3 ปีที่แล้ว +1

    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.

    • @learnerea
      @learnerea  3 ปีที่แล้ว +2

      Hi FOCUSED,
      That would requrie us to make another video, which we will do in sometime, keep an on the channel

  • @patjaproduction1119
    @patjaproduction1119 2 ปีที่แล้ว

    03:48

  • @chalmerilexus2072
    @chalmerilexus2072 2 ปีที่แล้ว +1

    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.

    • @learnerea
      @learnerea  2 ปีที่แล้ว +1

      Interesting Doubts, will try to post the solution

  • @shardulsharma6899
    @shardulsharma6899 ปีที่แล้ว

    bra...barplot 😂

    • @learnerea
      @learnerea  ปีที่แล้ว

      yeah.. that was literally a disastrous tongue slip...........

    • @janaramon1232
      @janaramon1232 10 หลายเดือนก่อน

      I thought it was just me!