MulaiMulai sekarang secara gratis

Using a catplot

In many cases, Seaborn's catplot() can be a simpler way to create a FacetGrid. Instead of creating a grid and mapping the plot, we can use the catplot() to create a plot with one line of code.

For this exercise, we will recreate one of the plots from the previous exercise using catplot() and show how to create a boxplot on a data-aware grid.

Latihan ini adalah bagian dari kursus

Intermediate Data Visualization with Seaborn

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a factor plot that contains boxplots of Tuition values
sns.____(data=df,
         x='___',
         kind='___',
         row='Degree_Type')

plt.show()
plt.clf()
Edit dan Jalankan Kode