Introduction à la visualisation de données avec Seaborn
Content Team
DataCamp
Montrer la relation entre deux variables quantitatives
Nous avons vu :
col et row)hue)Nouvelles personnalisations :
À utiliser avec scatterplot() et relplot()
import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", size="size")plt.show()

import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", size="size", hue="size")plt.show()

import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", hue="smoker", style="smoker")plt.show()

import seaborn as sns import matplotlib.pyplot as plt # Définir alpha entre 0 et 1 sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", alpha=0.4)plt.show()

Introduction à la visualisation de données avec Seaborn