This notebook is an exercise in the Data Visualization course. You can reference the tutorial at this link.


In this exercise, you will use your new knowledge to propose a solution to a real-world scenario. To succeed, you will need to import data into Python, answer questions using the data, and generate bar charts and heatmaps to understand patterns in the data.

Scenario

You've recently decided to create your very own video game! As an avid reader of IGN Game Reviews, you hear about all of the most recent game releases, along with the ranking they've received from experts, ranging from 0 (Disaster) to 10 (Masterpiece).

ex2_ign

You're interested in using IGN reviews to guide the design of your upcoming game. Thankfully, someone has summarized the rankings in a really useful CSV file that you can use to guide your analysis.

Setup

Run the next cell to import and configure the Python libraries that you need to complete the exercise.

The questions below will give you feedback on your work. Run the following cell to set up our feedback system.

Step 1: Load the data

Read the IGN data file into ign_data. Use the "Platform" column to label the rows.

Step 2: Review the data

Use a Python command to print the entire dataset.

The dataset that you've just printed shows the average score, by platform and genre. Use the data to answer the questions below.

Step 3: Which platform is best?

Since you can remember, your favorite video game has been Mario Kart Wii, a racing game released for the Wii platform in 2008. And, IGN agrees with you that it is a great game -- their rating for this game is a whopping 8.9! Inspired by the success of this game, you're considering creating your very own racing game for the Wii platform.

Part A

Create a bar chart that shows the average score for racing games, for each platform. Your chart should have one bar for each platform.

Part B

Based on the bar chart, do you expect a racing game for the Wii platform to receive a high rating? If not, what gaming platform seems to be the best alternative?

Step 4: All possible combinations!

Eventually, you decide against creating a racing game for Wii, but you're still committed to creating your own video game! Since your gaming interests are pretty broad (... you generally love most video games), you decide to use the IGN data to inform your new choice of genre and platform.

Part A

Use the data to create a heatmap of average score by genre and platform.

Part B

Which combination of genre and platform receives the highest average ratings? Which combination receives the lowest average rankings?

Keep going

Move on to learn all about scatter plots!


Have questions or comments? Visit the Learn Discussion forum to chat with other Learners.