Seaborn PairGrid | Compare PairGrid vs pairplot and use seaborn PairGrid map and map_diag

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • The seaborn PairGrid allows you to plot relationship plots as well as marginal distribution and is more flexible than the pairplot. In this video we compare the PairGrid vs pairplot, beginning by answering, "What is the PairGrid?" I then show you how to set up your PairGrid and then use pairgrid map to map various plots of your data onto the pairgrid. We then discuss the anatomy of the PairGrid and how you can use map_diag to map plots to the main diagonal, map_offdiag to map plots to the off-diagonal, and map_lower and map_upper to put plots on the lower and upper triangles of the pairgrid. Next, you'll see how to use the seaborn pairgrid hue to use color to represent a categorical feature in your dataset, and I also show you how to use pairgrid vars to specify only a subset of your numerical columns. Finally, we discuss pairgrid styling including how to change the pairgrid size with the arguments height and aspect. I also show you how to add a pairgrid legend.
    0:00 Introduction
    0:12 What is the PairGrid?
    0:48 PairGrid Setup
    2:28 PairGrid map()
    4:32 PairGrid map_diag(), map_lower(), etc.
    8:13 PairGrid hue and vars
    10:49 PairGrid Styling
    13:27 PairGrid legend
    14:55 BLOOPERS!
    // Github CODE //
    github.com/kimfetti/Videos/bl...
    // Related VIDEOS //
    Seaborn pairplot - • Seaborn pairplot | How...
    Seaborn FacetGrid - • Seaborn FacetGrid | Ho...
    Full Intro to Seaborn PLAYLIST -- • Intro to Seaborn
    #seaborn #dataviz
  • Наука та технологія

КОМЕНТАРІ • 26

  • @jagan1957
    @jagan1957 3 роки тому

    You have a unique style of explaining the Data Viz. diagrams. You have a great persona to appeal to a huge crowd with these wonderful nuggets. Thank you! Keep posting more. The bloopers were fun

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      Wow, thank you! I really appreciate your support. And glad to hear you enjoyed the bloopers - I'm definitely having fun making these videos! 😄

  • @vitorribeirosa
    @vitorribeirosa Рік тому

    Simply fantastic. Thank you very much.
    your videos are the ace of tutorials.
    Cheers!!!

  • @rskura
    @rskura 3 роки тому

    Great video Kim! Well done, as always. It's really nice to watch these and think about how I might use it with my own work. Please keep producing these high quality videos.

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Hi there! 👋 Thank you very much, and I'm very happy to hear you are getting ideas for your own work. Thanks for the support, and I will definitely keep creating!

  • @chyldstudios
    @chyldstudios 2 роки тому

    Very good explanation of the PairGrid!

  • @abhinavsharma4573
    @abhinavsharma4573 3 роки тому +1

    Very Nice and informative video Kimberly

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      So glad you liked it! Thanks for watching 😄

  • @MLA263
    @MLA263 Рік тому

    Thanks, that's very helpful

  • @benkouti
    @benkouti 2 роки тому

    this is just best of the best, great job Kim. can't say this by words, but this video was very helpfull, so thanks very very much. best wishes Kim!!

  • @youcefyahiaoui1465
    @youcefyahiaoui1465 2 роки тому

    Hi Kimberly, As always, it will be difficult for me to articulate how outstanding your videos are. Suffice to say a sincere thank you for the super valuable work you do. I may have asked this question before but I would love to see a video about the structure of the data these grid and "automated" methods like PairGrid and their map functions that are outstanding and very flexible. But I am running into issues when my data are simply columns of variables (I don't have any categorical variable). Say I want to specify which columns to use with x_vars and which I can use for y_vars. Then how can I use map methods to do what you showed and how, for instance, would I put texts to individual formed subplots? If I used PairGrid on my whole dataframe, then it will form a grid corresponding to all the dataframe. it will decide to look at cross correlation for all the columns. If I don't want to do that, I want to select columns to pairplot with only one other column (with wrapping the grid), how would I do that?

  • @sakthis7690
    @sakthis7690 2 роки тому

    Very Good Explanation... Thank you for this great tutorial for beginners :)

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому +1

      Why thank you very much! Always glad to help and spread the knowledge 😄

    • @sakthis7690
      @sakthis7690 2 роки тому

      @@KimberlyFessel Keep Posting Next level videos... Love your explanations Kim :)

  • @mahmoudhamza6765
    @mahmoudhamza6765 2 роки тому

    I miss ur videos..
    I have been waiting so long for the weekly videos. any news when they are coming back?
    You have taught me lots and lots and things
    I do wish you are doing well.

  • @ssaa129
    @ssaa129 2 роки тому

    I am not surprised no one disliked the video. Thank you very much

  • @kibetwalter8528
    @kibetwalter8528 3 роки тому

    Thank you

  • @guilhem3739
    @guilhem3739 3 роки тому

    Thank for the demo. Don't hesitate to make other videos like that with other sns methods. Python libraries are a jungle!

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому +1

      Most definitely! The more I learn about seaborn the more I realize it can do. And diving into the source code has been quite the experience as well 😄

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm 3 роки тому

    Thanks for your existence!

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      Yes! Thank you for your existence as well! 😄

  • @BiologyIsHot
    @BiologyIsHot Рік тому

    I'm super lost about what gets passed by map_lower() and map_upper(). For instance, if I try to wrap a modified version of sns.lmplot() I get an error that the required "data" argument is empty

  • @piusnnwachukwu3411
    @piusnnwachukwu3411 2 роки тому

    Thank you for such a nice video, just that I still have difficulty interpreting the histplot. What exactly it is representing

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому

      Glad you liked it! The histogram creates bins and then counts up the number of observations that fall within each bin, with the overall goal of estimating the distribution of your data. For a quick introduction, you can check out my shorts video: ua-cam.com/video/Lf08pBe1xIs/v-deo.html or for a longer explanation, see here: ua-cam.com/video/uZlMNUPA26E/v-deo.html