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

  Рет қаралды 19,061

Kimberly Fessel

Kimberly Fessel

Күн бұрын

Пікірлер: 56
@rajatgupta7344
@rajatgupta7344 3 жыл бұрын
can you please explain plt.rc('date.autoformatter',day='%b %Y') following your series it is superb.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
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.
@nanaamapinto2352
@nanaamapinto2352 3 жыл бұрын
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
@Blocktelligence
@Blocktelligence Жыл бұрын
You’re really good. Thank you.
@MichaelMohr-rz3wf
@MichaelMohr-rz3wf 3 ай бұрын
June 4, 2024: Oddball transcript is showing instead of video dialogue.
@KimberlyFessel
@KimberlyFessel 3 ай бұрын
Wow - it sure is. I attempted to update it, but that doesn't appear to be working. Hopefully will get fixed soon!
@robingraham1521
@robingraham1521 3 жыл бұрын
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!
@denisbaranoff
@denisbaranoff 2 жыл бұрын
I didn't even guess about these options (confidence interval with bootstrapping) in sns as embedded option. Thank you!
@SatendraYadav-cs1yh
@SatendraYadav-cs1yh 3 жыл бұрын
Awesome video for all seaborne tutorial. mam please make video for Machine learning also.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
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. 😄
@sahilpokharkar7053
@sahilpokharkar7053 2 жыл бұрын
It’s really helpful video for me….Thanks🙏 And compliment for you is you looking cute 😊
@LifetimeStd
@LifetimeStd 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@KimberlyFessel don’t worry. you don’t need to apologize for that at all! Haha all the best kimberly!
@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
@lekanadenusi462
@lekanadenusi462 2 жыл бұрын
I love your channel. ☺
@senzhan221
@senzhan221 2 жыл бұрын
good explanation!
@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.
@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?
@zouhir2010
@zouhir2010 3 жыл бұрын
nice necklace great explanation
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Haha - thank you very much! Glad to hear you liked the explanation and my necklace! I try to keep stylish 😄
@Funzelwicht
@Funzelwicht Жыл бұрын
Cool explanation for boostrapping, thanks! :)
@karakol86
@karakol86 3 жыл бұрын
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 3 жыл бұрын
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!
@FarizDarari
@FarizDarari 3 жыл бұрын
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!
@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. 👍
@chaoscifer1483
@chaoscifer1483 2 жыл бұрын
Love it. Thank you.
@code2compass
@code2compass 6 ай бұрын
I am not getting conf intervals in my plots. Is it the new update which is turning them off by default?
@KimberlyFessel
@KimberlyFessel 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
@@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 6 ай бұрын
@@KimberlyFessel yeah I just figured it out. Waiting for your playlist on time series analysis
@ryanbackherms1086
@ryanbackherms1086 2 жыл бұрын
Loved this video! It was easy to follow and was very concise.
@GregThatcher
@GregThatcher 3 ай бұрын
Thanks!
@KimberlyFessel
@KimberlyFessel 3 ай бұрын
Really appreciate the support - thanks so much! 😀
@lukskywaker
@lukskywaker 3 жыл бұрын
Your videos are one of the best in KZbin. Thank you Mam.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Oh thank you so much for the compliment! Glad you are enjoying them.
@williambertolasi1055
@williambertolasi1055 3 жыл бұрын
Good explanation: simple, clear and comprehensive.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thanks! Happy to hear you found the video useful!
@shashankpandey1966
@shashankpandey1966 3 жыл бұрын
Big fan of your teaching 🔥
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Awesome - thank you very much! 😎
@wankenny
@wankenny Жыл бұрын
Hi Kimberly, thanks for the video. Do you have an example of seaborn line plot with multiple x-variables on the same axis?
@adityadubey9565
@adityadubey9565 3 жыл бұрын
This channel deserves a lot more subscribers.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Why thank you! Slowly but surely it is growing every day! 😀
@hansmaier479
@hansmaier479 3 жыл бұрын
Can I depict the standard error of the mean?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Not standard error but you can display +/- one standard deviation by setting ci="sd" 👍
@lucapassani1129
@lucapassani1129 3 жыл бұрын
You are good. Thank you for your tutorials.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Awesome -- you are very welcome!
@sbedekar93
@sbedekar93 3 жыл бұрын
best seaborn tutorial on youtube :)
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Wow -- thanks for the compliment! 😀 Glad to hear you are enjoying my tutorial.
@brandonjones5326
@brandonjones5326 3 жыл бұрын
Thanks so much for this!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
You are most welcome! 😄
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 17 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
Seaborn Relplot - Create Scatter Plots and Line Plots in Python
12:48
Andy McDonald
Рет қаралды 1,7 М.
7 Python Data Visualization Libraries in 15 minutes
15:03
Rob Mulla
Рет қаралды 79 М.
Scatter plot with third variable as color | Python Matplotlib
9:48
Karina Adcock
Рет қаралды 36 М.
4 ways to display Seaborn charts in Streamlit
4:17
Fanilo Andrianasolo
Рет қаралды 7 М.