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")


Picture showing the output of univariate example of displot



Bivariate Example


import seaborn as sns
%matplotlib inline
tips = sns.load_dataset('tips')
sns.displot(tips, x="total_bill", y="tip")


Picture showing the output of multivariate example of displot



KDE Attribute




import seaborn as sns

%matplotlib inline
tips = sns.load_dataset('tips')
sns.displot(tips['total_bill'], kde=True)


Picture showing the output of KDE attribute in displot function



Bins Attribute




import seaborn as sns
import matplotlib.pyplot as plt
tips = sns.load_dataset('tips')
sns.displot(tips, x="total_bill", bins=2)


Picture showing the output of bins attribute in displot function



Posted By  -  Karan Gupta
 
Posted On  -  Sunday, October 20, 2024
 
Updated On  -  Tuesday, October 22, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250