Seaborn Flashcards

1
Q

import seaborn library

A

import seaborn as sns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use a heatmap to visualize missing data

A

sns.heatmap(df.isnull(), cbar=False)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Creating a distribution plot

A

sns.distplot(titanic[‘Fare’])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Creating a kernel density plot with shading underneath the curve

A

sns.kdeplot(titanic[‘Fare’], shade=True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Removing the spines

A
sns.despine(left=True, bottom=True)
# the top and right spines are absent by default
How well did you know this?
1
Not at all
2
3
4
5
Perfectly