BaşlayınÜcretsiz Başlayın

Genre by ticket type

A view of your sales data that covers movie_genre performance in by each ticket_type has been created for you as genre_ticket_totals. Feel free to use the .head() method to explore it in your console.

This is another great opportunity to use the hue parameter of sns.barplot() to investigate the performance of each movie genre across seniors, adults, and children via ticket_type column.

Bu egzersiz

Python for Spreadsheet Users

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Create a bar plot of genre_ticket_totals with ticket_type on the x-axis, ticket_quantity on the y-axis, and hue broken down by movie_genre.
  • Add the title Genre Turnout by Ticket Type, as well as x- and y-axis labels as Ticket Type and Tickets Sold, respectively.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create barplot


# Add labels


plt.show()
Kodu Düzenle ve Çalıştır