MulaiMulai sekarang secara gratis

Make it pretty with sns

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

Latihan ini adalah bagian dari kursus

Python for Spreadsheet Users

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# 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 dan Jalankan Kode