Make it pretty with sns
Let's make the graph stakeholder-facing with some final touches.
Deze oefening maakt deel uit van de cursus
Python for Spreadsheet Users
Oefeninstructies
- Use the appropriate
snsfunction to utilize the preset stylewhitegrid. - Use the appropriate
snsfunction to remove unwanted borders.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# 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()