Seaborn Flashcards
1
Q
import seaborn library
A
import seaborn as sns
2
Q
Use a heatmap to visualize missing data
A
sns.heatmap(df.isnull(), cbar=False)
3
Q
Creating a distribution plot
A
sns.distplot(titanic[‘Fare’])
4
Q
Creating a kernel density plot with shading underneath the curve
A
sns.kdeplot(titanic[‘Fare’], shade=True)
5
Q
Removing the spines
A
sns.despine(left=True, bottom=True) # the top and right spines are absent by default