CommencerCommencer gratuitement

boxplots, violinplots and boxenplots

Seaborn's categorical plots also support several abstract representations of data. The API for each of these is the same so it is very convenient to try each plot and see if the data lends itself to one over the other.

In this exercise, we will use the color palette options presented in Chapter 2 to show how colors can easily be included in the plots.

Cet exercice fait partie du cours

Intermediate Data Visualization with Seaborn

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create a boxplot
sns.____(data=df,
         x='____',
         y='____')

plt.show()
plt.clf()
Modifier et exécuter le code