Utiliser JointGrid et jointplot

Visualisation de données intermédiaire avec Seaborn

Chris Moffitt

Instructor

Aperçu de JointGrid()

Aperçu de JointGrid

Visualisation de données intermédiaire avec Seaborn

JointGrid de base

g = sns.JointGrid(data=df, x="Tuition", y="ADM_RATE_ALL") 
g.plot(sns.regplot, sns.histplot)

Exemple JointGrid

Visualisation de données intermédiaire avec Seaborn

JointGrid avancé

g = sns.JointGrid(data=df, x="Tuition", y="ADM_RATE_ALL") 
g = g.plot_joint(sns.kdeplot)
g = g.plot_marginals(sns.kdeplot, shade=True)

Exemple JointGrid annoté

Visualisation de données intermédiaire avec Seaborn

jointplot()

sns.jointplot(data=df, x="Tuition", y="ADM_RATE_ALL", kind='hex')

Exemple jointplot

Visualisation de données intermédiaire avec Seaborn

Personnaliser un jointplot

g = (sns.jointplot(x="Tuition",
                   y="ADM_RATE_ALL",
                   kind="scatter",
                   xlim=(0, 25000),
                   data=df.query('UG < 2500 &
                   Ownership == "Public"'))
    .plot_joint(sns.kdeplot))
Visualisation de données intermédiaire avec Seaborn

Personnaliser un jointplot

jointplot

Visualisation de données intermédiaire avec Seaborn

Passons à la pratique !

Visualisation de données intermédiaire avec Seaborn

Preparing Video For Download...