Get startedGet started for free

Make it pretty with sns

Let's make the graph stakeholder-facing with some final touches.

This exercise is part of the course

Python for Spreadsheet Users

View Course

Exercise instructions

  • Use the appropriate sns function to utilize the preset style whitegrid.
  • Use the appropriate sns function to remove unwanted borders.

Hands-on interactive exercise

Have a go at this exercise by completing this sample 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()
Edit and Run Code