Label your axes!
It's very important to label your axes. Continuing with our genre_totals barplot from the last exercise, let's continue building upon it here.
Latihan ini adalah bagian dari kursus
Python for Spreadsheet Users
Petunjuk latihan
- Label your x-axis
Movie Genre. - Label your y-axis
Revenue (USD).
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
sns.barplot(x='movie_genre', y='revenue', data=genre_totals)
plt.title('Revenue by Genre')
# Add x axis label
# Add y axis label
plt.show()