Articles → SEABORN → Displot Function In Seaborn
Displot Function In Seaborn
Purpose
What Does Visualization Mean?
Univariate Example
import seaborn as sns
%matplotlib inline
tips = sns.load_dataset('tips')
sns.displot(tips, x="total_bill")
Bivariate Example
import seaborn as sns
%matplotlib inline
tips = sns.load_dataset('tips')
sns.displot(tips, x="total_bill", y="tip")
KDE Attribute
import seaborn as sns
%matplotlib inline
tips = sns.load_dataset('tips')
sns.displot(tips['total_bill'], kde=True)
Bins Attribute
import seaborn as sns
import matplotlib.pyplot as plt
tips = sns.load_dataset('tips')
sns.displot(tips, x="total_bill", bins=2)