Seaborn pairplot | How to make a pairplot in Python and the Seaborn pairplot interpretation

  Рет қаралды 33,467

Kimberly Fessel

Kimberly Fessel

Күн бұрын

Пікірлер: 71
@starshipx1282
@starshipx1282 2 жыл бұрын
You’re the best instructor not just for seaborn but for any python library.
@brianoliver7240
@brianoliver7240 4 жыл бұрын
Great video! Thank you. I appreciate how clear and concise you content is.
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Excellent -- glad you are enjoying my content!
@sarahmabrouk5040
@sarahmabrouk5040 16 күн бұрын
thank you so much for this video, i just appreciate good quality content nowadays, you can't find many of them, thank you
@KimberlyFessel
@KimberlyFessel 14 күн бұрын
So glad you enjoyed it! 😁
@yarethreyes8737
@yarethreyes8737 2 жыл бұрын
Im starting in the data interpretation world and this video helps me a lot, thank you
@morasekhi
@morasekhi 4 жыл бұрын
Thank you very much for your detailed videos, looking forward to seeing more videos.
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad you are enjoying them -- And definitely more to come!
@KauleisteClever
@KauleisteClever 4 жыл бұрын
just binge watched your hole series. I'm learning matplotlib, but now it looks like that seaborn has a lot to offer. Thanks for this great series :)
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
What a compliment -- thank you! Glad to hear you enjoyed my series. Seaborn definitely has a lot to offer, and the great thing is that you can use most matplotlib commands to customize seaborn plots, too!
@simplemente_humano
@simplemente_humano 3 жыл бұрын
Effective, efficient, helpful and creative! Thanks for your tutorials!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
So glad you like them -- cheers!
@elsabecker371
@elsabecker371 2 жыл бұрын
I am so glad I found you. I think I will use you a lot. I am new to data analytics
@hormazddoc4244
@hormazddoc4244 Жыл бұрын
Please make a video for data analysis of the pairplot.
@lemonbitter7641
@lemonbitter7641 3 жыл бұрын
thanks @Kimberly for this nice explanation.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Most welcome! Happy to hear you enjoyed my explanation 😄
@gokulraj8302
@gokulraj8302 3 жыл бұрын
Way of teaching is very nice😍
@djardar
@djardar 2 жыл бұрын
This content is amazing! I learn both useful python code AND great visualizations. 👍😄
@mahamanoumar1802
@mahamanoumar1802 4 жыл бұрын
I really appreciate the way you are explaining..keep doing it
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Super -- will do!
@oayala65
@oayala65 2 жыл бұрын
I learn a lot. Thanks Kimberly...!!!!
@rishabhahuja171
@rishabhahuja171 4 жыл бұрын
Bring more videos ! Machine learning plz... This content is awesome
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Thanks so much for the support! 😄
@fernandohenriquesantorsula8084
@fernandohenriquesantorsula8084 2 жыл бұрын
Sensational, congratulations for the video, it was sensational...! A question please! I wanted to use this library to capture statistics from a Wi-Fi card of a Raspberry version 4, model B, and generate graphics, simulating the "In-band Network Telemetry" protocol, is it possible? Thanks.
@sumitsehrawat3718
@sumitsehrawat3718 3 жыл бұрын
How to interpret hist plot in the example shown What exactly it is representing
@humbertoluzoliveira
@humbertoluzoliveira Жыл бұрын
Hi kimberly, great video! Amazing! Would you like to get the slope and linear coefficients from the kind='reg' option in sns.pairplot? Congratulations on the excellent content.
@drytadpole
@drytadpole 2 жыл бұрын
Really well made video!! Thank You ma'am
@igoweiqibaduk8283
@igoweiqibaduk8283 3 жыл бұрын
Thank you for video!
@sriratna9211
@sriratna9211 3 жыл бұрын
Thank you ! Helped me a lot, you are awesome !
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
So glad to hear this video helped you! You are too kind 😄
@ahmedmostafaelgamal2795
@ahmedmostafaelgamal2795 3 жыл бұрын
great work , Thanks a million
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thanks and you are most welcome!
@himaharidev
@himaharidev 3 жыл бұрын
Hi Kimberley, thank you for your great videos. Learnt a lot. May I know if there is a way to remove outlier points which affect the regression line in pairplots or pair grids? Thanks in advance!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Yes! You can do this by updating the arguments to plot a "robust regression" for the off-diagonal regplots. Robust regression down-weights the outliers when fitting the regression line. Something like this: sns.pairplot(df, kind='reg', plot_kws={'robust': True, 'n_boot': 100}); I have also decreased the number of bootstraps here because robust regression is significantly more computationally expensive. You can alternatively add 'ci':None if you don't need confidence intervals for the regression lines.
@hamza3065
@hamza3065 3 жыл бұрын
Thanks alot Kimberly
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
You're very welcome! 👍
@aprashnani
@aprashnani 4 жыл бұрын
Nicely Explained! Thanks..
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Most welcome!
@060584saurav
@060584saurav 3 жыл бұрын
Hi Kimberly: Thanks for such clear explanation. I want to know if we can change the size of axis title and axis value. My Data set has seven parameters so each plot become very small and corresponding axis title and axis value also become very small
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi there - sure, there are a couple of different things you can try here. First, you could increase the height of your figure if you have a lot of plots; for example, sns.pairplot(df, height=3). The default height is 2.5, so anything larger than that would increase the plot area... but it won't change the font sizes of the titles or axes. To do that, you could add sns.set(font_scale=2) above your figure. That will double the size of all fonts since the default font_scale is 1. This would actually change the rcParams in the backend so all figures you create after this will also have larger fonts.
@friendsforever715
@friendsforever715 8 ай бұрын
what should be put to exclude a column from the dataframe in the pairplot graph? thanks
@KimberlyFessel
@KimberlyFessel 8 ай бұрын
You can pass a list of column names that you WOULD like to plot to the vars keyword. Or if you just want to exclude one column, you could do something like sns.pairplot(df.drop(columns='col_name')) where df is the name of your dataframe variable and 'col_name' is your column's name as a string.
@mohammed_Ansar
@mohammed_Ansar 3 жыл бұрын
hey there, how can i learn about inbuilt keyword arguments and functions. where can i check it?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi - I usually start by looking at the seaborn documentation for the specific plot I want to make. For example, here is the documentation for the pairplot: seaborn.pydata.org/generated/seaborn.pairplot.html I also like to look through the full seaborn API reference to learn what different functions are available: seaborn.pydata.org/api.html Finally, whenever something isn't fully clear from the documentation, I read the source code. The entire seaborn library is available on GitHub here with most of the code in the "seaborn" folder: github.com/mwaskom/seaborn
@web64dev
@web64dev Жыл бұрын
I didn't understand the graphs along the diagonal and what they represent.
@faridbabayev1657
@faridbabayev1657 4 жыл бұрын
Hi! Thank you for video! Could you please tell me how to change the color of line in 'reg' kind?
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Oh sure! Within the pairplot function you can access the plot_kws and then the line_kws if you just want to update the line color. For example, "sns.pairplot(tips, kind='reg', plot_kws={'line_kws': {'color':'black'}})"
@GaganDeep-ul7jy
@GaganDeep-ul7jy 3 жыл бұрын
with each video I watch. I am falling in love with you❤❤❤❤
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Glad to hear you are enjoying the videos - cheers!
@mukaddastaj5223
@mukaddastaj5223 3 ай бұрын
Could you please, pleeease explain why in the first hisotgram while calling sns.pairplot(tips) my graph looks totally different? Like, in your version the highest bar reaches over 50, mine is under 20 T_T I've been thinking about this all day long
@KimberlyFessel
@KimberlyFessel 2 ай бұрын
Hi there - I suspect this is a versioning difference. I just tested out sns.pairplot(tips) with Seaborn version 0.13.1, and the highest bar I got was about 20 for the total_bill figure as well. The difference is probably just how Seaborn (or numpy) does it's default binning for the histograms. If you do something like this: sns.pairplot(tips, diag_kws={'bins': 10}); , you'll see higher bars, too, though not quite as high as mine since the bin locations seem to have shifted a bit as well. TL;DR: you're doing it right; Seaborn just changed!!
@mukaddastaj5223
@mukaddastaj5223 2 ай бұрын
@@KimberlyFessel thanks😭 i noticed the y axis aligns with other graphs in the row but not the histogram and read somewhere on stack overflow it had to do with diag-sharey property or sth. I tried to fix that but failed to🥲
@vedanthbaliga7686
@vedanthbaliga7686 4 жыл бұрын
Thank you for making these videos! They are helping me a lot. Maybe you should try SEO Optimization to rank your videos on top of the youtube recommendations
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad these videos have been helpful! And yes, I am definitely working on the SEO -- hopefully will start ranking higher soon. 😄
@raymondmccleery3513
@raymondmccleery3513 3 жыл бұрын
Hi Kimberly. Thank you for this video! Can you show some code for how to load my own data for this kind of plot, from a *.txt or *.csv file, from my computer? The data set is a table of data 26 columns by 49 points with column headers. Thanks.
@raymondmccleery3513
@raymondmccleery3513 3 жыл бұрын
Figured it out, never mind!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Glad to hear you figured it out! In case others are also curious, I would likely load the data using pandas. If pandas has been imported using "import pandas as pd", you can load in a csv using df = pd.read_csv(filename) where filename is either a file on your computer in the same directory as your code or is a path to the file. Then df will be a pandas dataframe that you can plot with seaborn. One note of caution: if you have 26 numeric columns, you will likely not want to display all of the data on a pairplot because the individual subplots will be very small. You can pass a list to the pairplot's vars argument to select only certain columns to be plotted. 👍
@raymondmccleery3513
@raymondmccleery3513 3 жыл бұрын
@@KimberlyFessel , yes it's a bit out of control! LOL. But, being able to see them all is, for me, an important aspect of data mining when you are looking for hidden relationships. Would using the slider widget help in this case, or would it not really help because you are limited by the width of the display area in Jupyter Notebook? Is there away to directly send the plot to a larger frame document, like a PDF?
@anithan1
@anithan1 3 жыл бұрын
Hey nice video, how to get that interactive button to increase / decrease teh height
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi there -- that's a Jupyter Widget from the ipywidgets library (ipywidgets.readthedocs.io/en/stable/). I have been considering making a video about them, so hopefully that will be coming up eventually. But for now, you can find the code I used to make that specific widget under the "Styling" header on my GitHub page: github.com/kimfetti/Videos/blob/master/Seaborn/12_pairplot.ipynb
@vishalsinha9020
@vishalsinha9020 3 жыл бұрын
Great Content..!!!!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thanks very much - glad you enjoyed it!
@taowang2731
@taowang2731 2 жыл бұрын
wow, that is the real thing
@R7m7m
@R7m7m 3 жыл бұрын
you helped me
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
So great to hear that!
@sankarbareddy3515
@sankarbareddy3515 2 жыл бұрын
hi, Kim. great video. By the way you look alike Kim Wexler from Better call Saul.
@mitchrawlyk5705
@mitchrawlyk5705 3 жыл бұрын
Is it possible to hire you to tutor me?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
I'm flattered! But I am currently working as a full-time instructor at Metis data science bootcamp. Not taking on private tutoring at this time.
@r-rk
@r-rk 3 жыл бұрын
where is interpretation?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi - this video interprets what each component of the pairplot means and where the data come from. Where you interested in the interpretation we can draw from the pairplot about the underlying dataset? I have been considering making a few videos like that as well!
@r-rk
@r-rk 3 жыл бұрын
@@KimberlyFessel yeah, that's what I want how to interpret the results from the plot. Looking forward for the video Thank you.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 29 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 34 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 26 МЛН
Интересно, какой он был в молодости
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 3,8 МЛН
How does AI threaten our environment? | The Stream
25:01
Al Jazeera English
Рет қаралды 1,1 М.
Tutorial 9- Seaborn Tutorial- Distplot, Joinplot, Pairplot  Part 1
21:43
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 180 М.
Learn Data Visualization with Matplotlib in Python: A Beginner’s Guide
32:29
How to Visualize Data in Python Using Seaborn | Seaborn Tutorial.
15:46
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 29 МЛН