Using Facetgrid, Factorplot and Lmplot: Chris Mof TT
Using Facetgrid, Factorplot and Lmplot: Chris Mof TT
Chris Mof tt
Instructor
INTERMEDIATE DATA VISUALIZATION WITH SEABORN
Tidy data
Seaborn's grid plots require data in "tidy format"
sns.factorplot(x="Tuition", data=df,
col="HIGHDEG", kind='box')
g = sns.FacetGrid(df, col="HIGHDEG")
g.map(plt.scatter, 'Tuition', 'SAT_AVG_ALL')
Chris Mof tt
Instructor
Pairwise relationships
PairGrid shows pairwise relationships between data elements
g = sns.PairGrid(df, vars=["Fair_Mrkt_Rent",
"Median_Income"])
g = g.map(plt.scatter)
sns.pairplot(df, vars=["Fair_Mrkt_Rent",
"Median_Income"], kind='reg',
diag_kind='hist')
Chris Mof tt
Instructor
JointGrid() Overview
Chris Mof tt
Instructor
INTERMEDIATE DATA VISUALIZATION WITH SEABORN
Univariate Distribution Analysis
distplot() is the best place to start for this analysis