Introduction à la visualisation de données avec Seaborn
Content Team
DataCamp

relplot()col= et row=import matplotlib.pyplot as plt
import seaborn as sns
sns.countplot(x="how_masculine",
data=masculinity_data)
plt.show()

import matplotlib.pyplot as plt
import seaborn as sns
sns.catplot(x="how_masculine",
data=masculinity_data,
kind="count")
plt.show()

import matplotlib.pyplot as plt import seaborn as snscategory_order = ["Pas de réponse", "Pas du tout", "Pas vraiment", "Un peu", "Beaucoup"]sns.catplot(x="how_masculine", data=masculinity_data, kind="count", order=category_order)plt.show()

Affiche la moyenne d'une variable quantitative par catégorie
import matplotlib.pyplot as plt
import seaborn as sns
sns.catplot(x="day",
y="total_bill",
data=tips,
kind="bar")
plt.show()


import matplotlib.pyplot as plt import seaborn as sns sns.catplot(x="day", y="total_bill", data=tips, kind="bar", errorbar=None)plt.show()

import matplotlib.pyplot as plt import seaborn as sns sns.catplot(x="total_bill", y="day", data=tips, kind="bar")plt.show()

Introduction à la visualisation de données avec Seaborn