Make it pretty with sns
Let's make the graph stakeholder-facing with some final touches.
Cet exercice fait partie du cours
Python for Spreadsheet Users
Instructions
- Use the appropriate
sns
function to utilize the preset stylewhitegrid
. - Use the appropriate
sns
function to remove unwanted borders.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Set style to whitegrid
sns.barplot(x='movie_genre', y='revenue', data=genre_totals)
plt.title('Revenue by Genre')
plt.xlabel('Movie Genre')
plt.ylabel('Revenue (USD)')
# Remove unwanted borders
plt.show()