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.
This exercise is part of the course
Python for Spreadsheet Users
Exercise instructions
- Label your x-axis
Movie Genre
. - Label your y-axis
Revenue (USD)
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
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()