Seaborn countplot | What is the countplot? | Seaborn countplot vs barplot

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 63

  • @marawankhaled5611
    @marawankhaled5611 3 года назад +3

    you are great

  • @gyanabrota
    @gyanabrota 3 года назад +2

    Nice. Informative

  • @WillOstrick
    @WillOstrick 2 года назад +1

    Your videos are very helpful and informative, love what you are doing :)

  • @kaduflutist
    @kaduflutist Год назад +1

    Thanks a ton, Kimberly! I enjoy the way you teach and show the code without hiding anything. Great job!

  • @justinfoster5995
    @justinfoster5995 2 года назад +1

    I was going nuts trying to figure out how to make days of the week show up in order on my plots. As always it turns out to be really simple once you know how. Thanks!

  • @AE-pv9vc
    @AE-pv9vc 3 года назад +1

    Yet again, your videos are helping me understand my coursework. Thanks so much- PhD well deserved!

  • @satender7625
    @satender7625 Год назад

    You well explained ma'am
    Thanks for such vedio

  • @Camila-fv9qj
    @Camila-fv9qj Год назад

    If i had sea_animal , animals , weight , how i can put sea_animal , animal in y axis
    And weight in x axis

  • @gauthamambethkar4483
    @gauthamambethkar4483 3 года назад +1

    Just now completed the whole seaborn playlist. Thank you so much for making it really easy for us.

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Oh wow! Thanks for watching! Very glad to hear it was helpful.

  • @neelsamshah
    @neelsamshah 3 года назад +1

    Thank you for creating these videos. They are great. Both the syntax for creating the plots as well as how seaborn creates these plots are explained very clearly.

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Thanks very much for the compliment! Glad to hear the syntax and the explanation are clear 😀

  • @yashsaxena7754
    @yashsaxena7754 2 года назад

    Can anyone suggest how can i annotate a seaborn countplot??

  • @Mockingbirdrye
    @Mockingbirdrye 2 года назад

    Powerful addition; thank you! Count axis is in decimals, however ... how to specify axis in integer values?

  • @yodude8325
    @yodude8325 2 года назад

    The videos are such high quality. Thankyou so much Kimberly! This playlist helped me alot

  • @ShovonMallick41
    @ShovonMallick41 3 года назад

    how to add data labels on the top of each bar with seaborn countplot?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Very good question - and I plan to address this in a seaborn Q&A video coming up! I would probably use matplotlib's plt.text() function to do this, but the tricky part will be grabbing the right numbers and lining up the values in the right spot. Something similar to what I did here: ruclips.net/video/NBYzSaTbodM/видео.html

  • @rishidixit7939
    @rishidixit7939 4 месяца назад

    I used both Histplot and Countplot on categorical data and both provided similar results so what is the difference between the two ?

    • @KimberlyFessel
      @KimberlyFessel  3 месяца назад +1

      Great question - the output looks very similar but the input can be quite different. For the histplot, you'll have a column of numbers. Those can be integers or floating point numbers with a decimal. Seaborn will automatically make buckets for those numbers and count up how many numbers it sees within the range of each bucket (e.g. how many numbers fall somewhere within 3 to 5?) With the countplot, however, you'll often have a column full of categorical items, such as a column full of text values like dog, cat, and bird. Seaborn will tally up how many of each item it sees in that column (e.g. how many times does the word "dog" appear in the "pets" column?). Things can get fancier from there, but that's the rough gist. 👍

    • @rishidixit7939
      @rishidixit7939 3 месяца назад +1

      @@KimberlyFessel Thanks a Lot😊

  • @abcdefghi2650
    @abcdefghi2650 2 года назад

    Thank you Kimberly, for making our life easier :))

  • @mohitbhongale4461
    @mohitbhongale4461 Год назад

    thank u

  • @nithinkurakula5608
    @nithinkurakula5608 2 года назад

    How to show the number of counts on each bar using countplot?

  • @Hashimhamza007
    @Hashimhamza007 3 года назад

    Thank you very much. I found this series really helpful. I've a doubt with countplot? how do we display it with percentage instead of count/frequency?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      So glad you are liking the series! Unfortunately, using percentages isn't currently an option within the countplot, but as Michael Waskom the author of seaborn points out, you could accomplish this using the seaborn barplot instead: github.com/mwaskom/seaborn/issues/1027

  • @wani212
    @wani212 3 года назад

    Thank you for creating this video

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      You are so welcome - thank you for watching this video!

  • @thepresistence5935
    @thepresistence5935 3 года назад

    I am your 4k subscriber! happy to be in 4k.

  • @vinitpol2225
    @vinitpol2225 2 года назад

    Thank you so much mam ❤❤😍😍😍

  • @sanjaysanjay862
    @sanjaysanjay862 2 года назад

    This sns series is super cool

  • @davidjackson7675
    @davidjackson7675 6 месяцев назад

    Good stuff!

  • @sharkk2979
    @sharkk2979 2 года назад

    gud tut! ty

  • @jonasfelix7700
    @jonasfelix7700 3 года назад

    Thx! Great video! How to add numbers to the top of the bars? There are many examples, but shouldn’t that be a default option for bar and countplot?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Right? That would be glorious, but it isn't a default option as far as I can tell for the current version of seaborn. (Though it is an option with the heatmap through the annot keyword.) It's a bit more challenging to write perfectly robust code to do this since the scale of the counts changes -- and especially for the barplot where we also have the confidence intervals to contend with. From what I have seen, cycling through the patches seems to be the best bet for now. You've probably already seen it, but if not, this post has some options: stackoverflow.com/questions/31749448/how-to-add-percentages-on-top-of-bars-in-seaborn

    • @jonasfelix7700
      @jonasfelix7700 3 года назад

      @@KimberlyFessel thank you for the insight!

  • @vedantsharma6113
    @vedantsharma6113 3 года назад

    Thanks!

  • @genildomoura
    @genildomoura 3 года назад

    Hi, Please, How do we print the number above each bar? thanks a lot.

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Great question and I plan to add this to my upcoming seaborn Q&A video! I would probably use matplotlib's plt.text() function, but the tricky part will be grabbing the right numbers and lining up the values in the right spot. Something similar to what I did here should do the trick: ruclips.net/video/NBYzSaTbodM/видео.html

    • @genildomoura
      @genildomoura 3 года назад +1

      @@KimberlyFessel thanks for your reply 😀

  • @yuchaozhang3587
    @yuchaozhang3587 3 года назад

    Great series of videos for Seaborn. Would you like to make a video about factorplot?

    • @yuchaozhang3587
      @yuchaozhang3587 3 года назад

      Oops, it seems that factorplot is a older version of catplot. I will check out your catplot video!

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Yes! I was just about to recommend the catplot - it has a lot of great functionality!

  • @wadanali4938
    @wadanali4938 3 года назад

    Absolutely great video

  • @scarylooksoundgroup4638
    @scarylooksoundgroup4638 3 года назад

    Professional content👏

  • @rskura
    @rskura 3 года назад

    The outtakes at the end are hilarious!

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Haha - glad you enjoyed them! I like having fun with those. 😄

  • @kadambinisinha6001
    @kadambinisinha6001 3 года назад

    Was really useful🙌

  • @dongmeili891
    @dongmeili891 3 года назад

    Thanks.

  • @lawrencetaulk7898
    @lawrencetaulk7898 3 года назад

    great video. love it!

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Thank you very much - I appreciate the support! 😄

  • @wadanali4938
    @wadanali4938 3 года назад

    Love the way you teach

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Why thank you!

    • @wadanali4938
      @wadanali4938 3 года назад +1

      @@KimberlyFessel because it was the easy way, we got everything very soon