Seaborn lineplot | How to make a Seaborn lineplot and what is bootstrapping in Seaborn?

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

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

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

    I am new to Matplotlib, Pandas, Numpy and Seaborn. I have looked at all the videos I could find and finished up more confused. It was not until I watched Kimberely that everything started to make sense. I made more progress in one evening watching her than the previous month daily watching other videos. Kimberely makes things very clear and easy to follow

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

      Oh wow - thank you very much for the compliment! That makes me so happy that my videos have been helpful for you. 😄 And thanks for watching!

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

    This channel deserves a lot more subscribers.

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

      Why thank you! Slowly but surely it is growing every day! 😀

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

    Thanks!

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

      Really appreciate the support - thanks so much! 😀

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

    Your videos are one of the best in TH-cam. Thank you Mam.

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

      Oh thank you so much for the compliment! Glad you are enjoying them.

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

    Thanks for the nice & clear illustrative explanation of bootstrapping for getting confidence intervals! Subscribed!

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

      So glad it was helpful! Bootstrapping is such a useful technique, but it definitely takes some explaining 😄 Thanks for subscribing!

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

    Hi Kimberly!
    Ken from Brazil here. Thank you very much for your videos! They are helping me a lot as a very nice complement for a course that I'm taking!!
    Your explaining of theory behind technique helps a lot!
    I know the code is in github but for those who are coding along with the video like me, at time 1:55 if you don't use (hidden by text length) "inplace=True" in rename function, you will probably face an AttributeError: 'DataFrame' object has no attribute 'Timestamp' error :)

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

      Oh yes - you are correct, Ken! My apologies for not scrolling to the right. The full code has *"inplace=True" for the rename method* in cell #6 at 1:55.
      Thank you for clarifying and glad to hear the videos are helpful!

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

      @@KimberlyFessel don’t worry. you don’t need to apologize for that at all! Haha all the best kimberly!

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

    Cool explanation for boostrapping, thanks! :)

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

    Good explanation: simple, clear and comprehensive.

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

      Thanks! Happy to hear you found the video useful!

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

    I didn't even guess about these options (confidence interval with bootstrapping) in sns as embedded option. Thank you!

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

    It’s really helpful video for me….Thanks🙏
    And compliment for you is you looking cute 😊

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

    Loved this video! It was easy to follow and was very concise.

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

    You’re really good. Thank you.

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

    I would like to know how to add the reference range shading as in this video at the 5 minute mark. Do you have a demo of that?

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

    Big fan of your teaching 🔥

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

      Awesome - thank you very much! 😎

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

    nice necklace
    great explanation

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

      Haha - thank you very much! Glad to hear you liked the explanation and my necklace! I try to keep stylish 😄

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

    Love it. Thank you.

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

    best seaborn tutorial on youtube :)

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

      Wow -- thanks for the compliment! 😀 Glad to hear you are enjoying my tutorial.

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

    I love your channel. ☺

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

    You are good. Thank you for your tutorials.

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

      Awesome -- you are very welcome!

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

    Thanks for the tutorial very understandable from previous lessoons to this. However have a problem with the renaming of the columns . i keep getting this feedback error as follows "Attribute Error: 'Data Frame' object has no attribute 'Timestamp' "
    I enter rightly as you have in the tutorial but still get the same feedback. Any help on this please. Thank you

  • @SatendraYadav-cs1yh
    @SatendraYadav-cs1yh 4 ปีที่แล้ว +1

    Awesome video for all seaborne tutorial. mam please make video for Machine learning also.

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

      Hi there -- glad you are enjoying the Seaborn videos! I do plan to branch out a bit from the data viz videos at some point. Maybe mathematical or statistical concepts. Actually was thinking about trying to visualize some error metrics or distance metrics soon. 😄

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

    good explanation!

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

    Hi Kimberly, Hope you're well. Can you please have a video on how to plot a matrix over a vector of x values (multiple plots at once). I have data representing n points on a line but they're all givinen in 6 column data frame as a shape x1, x2, x3, y1, y2, y3 as one row then multipl rows repeat of similar data. How can you reshape then plot (x1,y1), (x2, y2) & (x3,y3) as one line of one row... Your answer is much appreciated. Thank you

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

    can you please explain plt.rc('date.autoformatter',day='%b %Y')
    following your series it is superb.

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

      Glad to hear that! With that line of code I'm updating one of matplotlib rc parameters, specifically the format of how days will appear in my figures. The string "%b %Y" actually makes all my days appear as a short-named month and a longer year... "Nov 2020" or "Feb 2019" for example. Normally we wouldn't want to do that since it no longer mentions the day, but for these figures I was going for less granular dates.

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

    Thanks so much for this!

  • @DishaShah-w7x
    @DishaShah-w7x 2 หลายเดือนก่อน

    Just 1 like button is very less for the video🤧i want to like it again and again

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

      So glad you liked it! 😀

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

    I came back to your channel to understand stuff, an Amazing explanation.
    Also, I wish to ask a small question,
    say we have a data set of 10 students and their different marks, I wish to plot the lineplot for the various subjects and for all the 10 students in the same plot.

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

      Very glad to hear you are learning from my channel! Regarding your question, you could theoretically make the plot you mentioned with the code sns.lineplot(data=data, x="subject", y="marks", hue="student") to split the students into their own lines. However, most often we use lineplots to display two continuous variables like time and occupancy shown in this video. Since you have various subjects (categorical) and marks (continuous), I would probably use a barplot or maybe a heatmap or clustermap to show these data instead. 👍

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

    Hi, great video! Question about the syntax, “‘xkcd:brick red’ - are there other color libraries/surveys besides the XKCD color survey, matplotlib and just passing general colors? I have never seen xkcd used before!

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

      There are so many ways to specify color in matplotlib! 😄 As you mentioned, there are several named colors but matplotlib/seaborn also accepts RGB tuples, hex codes, the xkcd color library, and the 10 Tableau colors. (matplotlib.org/tutorials/colors/colors.html) I plan to make at least one video about matplotlib colors in the future!

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

    I am not getting conf intervals in my plots. Is it the new update which is turning them off by default?

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

      Do you have multiple data points for each value along your x-axis? You will only get the confidence intervals if your dataset has multiple values for the x-positions. You can see an example of each default behavior in the seaborn lineplot docs (seaborn.pydata.org/generated/seaborn.lineplot.html). In the first plot, the data is only for May (does not have multiple values for each x), so there are no conf intervals. In the example midway down, there are confidence intervals because the entire dataset is plotted and there are multiple values for each x-position (year). Hope that helps!

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

      @@KimberlyFessel so it means for each x(i) there has to be an upper and lower value for each given value right?
      What if we calculate that ourselves!

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

      @@code2compass Seaborn does bootstrapping of all the datapoints at each x-position to find those confidence intervals for you. But nothing would stop you from creating your own CIs. You could just add a matplotlib element to fill between two sets of y values (matplotlib.org/stable/gallery/lines_bars_and_markers/fill_between_demo.html) and set alpha to make the shading transparent. 👍

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

      @@KimberlyFessel yeah I just figured it out. Waiting for your playlist on time series analysis

  • @Himanshu-ed3mf
    @Himanshu-ed3mf 3 ปีที่แล้ว

    95% confidence interval means that we are 95% sure that true mean exist in this interval?

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

      Pretty much! Here we're using bootstrapping to construct that confidence interval, so it represents bounds such that 95% of the means found (across all the bootstrapped data sets) are contained by these bounds.

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

    Can I depict the standard error of the mean?

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

      Not standard error but you can display +/- one standard deviation by setting ci="sd" 👍

  • @MichaelMohr-rz3wf
    @MichaelMohr-rz3wf 8 หลายเดือนก่อน

    June 4, 2024:
    Oddball transcript is showing instead of video dialogue.

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

      Wow - it sure is. I attempted to update it, but that doesn't appear to be working. Hopefully will get fixed soon!