Seaborn stripplot | What is a strip plot and how to make a strip plot in Python seaborn

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

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

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

    Amazing job! A very didactic video with a lot of value. Thank you for sharing it.

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

    excellent introduction, especially the introduction of the statistics and the concept of plots.

  • @Muchael754
    @Muchael754 6 หลายเดือนก่อน

    I’ve used R ggplot for data visualisation and now learning Python. I was wondering for a long time how to do jitter plot in a different way as I used to use Graphpad, where we get swam plot! Thanks for telling me the name of the plot!!!

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

      Awesome! Yes, I find both the strip plot and the swarm plot to be super useful for getting a sense of the distribution of points. And they look nice too 😊

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

    It would be great if you can explain how to interpret the plot. It is a brilliant step by step visual explanation

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

      Oh I see - like some inferences we can draw from the plot? Interesting idea and I will consider that for an upcoming video. Thanks!

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

    Thank you for the beautiful video :-)

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

    Outstanding explanation! Thanks. Could you please make an example with a colorbar.
    Is it possible to use a color bar with a stripplot like we can use in a scatterplot?

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

      Glad you enjoyed the video and good suggestion. Theoretically, you should be able to pass a continuous variable to the "hue" argument of the stripplot like you can with the scatterplot. I just did a few tests, and this works but doesn't work as well as the scatterplot. This makes me wonder if the stripplot may have a bug or need to process data a bit differently. 🤔

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

    Hello can you tell me how to show the average data in each group in Seaborn

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

    Amazing!

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

    While making the stripplot how to get in inter quartile lines ?

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

      I don't think the stripplot natively comes with interquartile lines, but you could plot an empty box plot behind your stripplot to see them. For example:
      sns.boxplot(data=df, x='my_col', fill=False)
      sns.stripplot(data=df, x='my_col');
      You could even turn the boxplot whiskers and fliers off with whis=0 and fliersize=0 if you'd like.

    • @rishidixit7939
      @rishidixit7939 29 วันที่ผ่านมา

      @@KimberlyFessel Thank You for the reply. I have actually saved and recommended your Seaborn Playlist to everyone. Your method of explaining is actually very comprehensive and nice which is not the case with a majority of TH-cam creators in this field.
      I do not know much about you but still I would request you if you get the time please do try and make application based and explanation videos in the field of stats, Data Science and Probability.
      Though the field is cluttered there is a serious lack of comprehensive explanations and quality.
      Also please upload your video on Web Scraping which you made for PyCon US on your own channel. It is very well explained and an amazing Tutorial

    • @KimberlyFessel
      @KimberlyFessel  24 วันที่ผ่านมา +1

      @rishidixit7939 Thanks very much for the recommendation to others! And I hope to make more videos in 2025.

  • @minakshimathpal8698
    @minakshimathpal8698 4 ปีที่แล้ว

    sns.set_style('white')
    sns.stripplot(cars.weight, ['']*len(cars), hue=cars.cylinders,
    can you plzz explain what ['']*len(cars) is doing here

    • @KimberlyFessel
      @KimberlyFessel  4 ปีที่แล้ว

      Sure thing. For that example, I wanted just one horizontal strip of data, so I set the y-axis category to be one empty string for every datapoint. (That syntax just repeats the elements of the list by the number of rows in cars.) This also means that I don't have any y-axis tick labels because the category is just the empty string.

  • @sivasu07
    @sivasu07 4 ปีที่แล้ว

    Mam ur teaching is excellent
    Can u teach me seaborn libraries in python

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

      So glad you enjoyed the video! 👍 You can check out my full "Introduction to Seaborn" playlist here: th-cam.com/play/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j.html

    • @sivasu07
      @sivasu07 4 ปีที่แล้ว

      @@KimberlyFessel do u have videos for multiple bar plots using twinx func

    • @sivasu07
      @sivasu07 4 ปีที่แล้ว

      @@KimberlyFessel last ques- how to do multiple box plots in seaborn

    • @KimberlyFessel
      @KimberlyFessel  4 ปีที่แล้ว +1

      Hi -- no videos using twinx yet but will consider that for the future!

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

      As subplots? You could create multiple box plots on the same figure by using pyplot to create subplots (plt.subplots(1, 2) would create one row with two columns of figures). I'll likely to a subplot video at some point 😄

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

    This really should be called a jitterplot