Genre by market
A view of your sales data that covers movie_genre performance in each theater_location has been created for you as genre_market_totals. Feel free to use the .head() method to explore it in your console.
This table is a great opportunity to use the hue parameter of sns.barplot() to investigate the performance of each movie genre across each market, or theater_location.
Este ejercicio forma parte del curso
Python for Spreadsheet Users
Instrucciones del ejercicio
- Create a bar plot of
genre_market_totalswiththeater_locationon the x-axis,revenueon the y-axis, and hue broken down bymovie_genre. - Add the title
Genre Performance by Market, as well as the x- and y-axis labels asMarketandRevenue (USD), respectively.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Create barplot
sns.barplot(x=____, y=____, hue=____, data=____)
# Add labels
plt.____('Genre Performance by Market')
plt.____('Market')
plt.____('Revenue (USD)')
plt.show()