ComeçarComece de graça

Make it pretty with sns

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

Este exercício faz parte do curso

Python for Spreadsheet Users

Ver curso

Instruções do exercício

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

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# 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()
Editar e executar o código