IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Intermediate Data Visualization with Seaborn

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

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

plt.show()
plt.clf()
Modifica ed esegui il codice