Premium Project

A Network Analysis of Game of Thrones

Analyze the network of characters in Game of Thrones and how it changes over the course of the books.

Start Project
  • 9 tasks
  • 6,756 participants
  • 1,500 XP

Project Description

Jon Snow, Daenerys Targaryen, or Tyrion Lannister? Who is the most important character in Game of Thrones? Let's see what mathematics can tell us about this!

In this project, you will look at the character co-occurrence network and its evolution over the five books in R.R. Martin's hugely popular book series A Song of Ice and Fire (perhaps better known as the TV show Game of Thrones). You will look at how the importance of the characters changes over the books using different centrality measures.

This project assumes you are familiar with the networkx package and different network centrality measures. It also assumes that you have used pandas and can manipulate DataFrames. Before starting this project we recommend that you have completed these courses:

This project uses a dataset parsed by Andrew J. Beveridge and Jie Shan which is available here. For more information on this dataset have a look at the Network of Thrones blog.

Project Tasks

  • 1Winter is Coming. Let's load the dataset ASAP!
  • 2Time for some Network of Thrones
  • 3Populate the network with the DataFrame
  • 4The most important character in Game of Thrones
  • 5The evolution of character importance
  • 6What's up with Stannis Baratheon?
  • 7What does Google PageRank tell us about GoT?
  • 8Correlation between different measures
  • 9Conclusion
Instructor Avatar
Mridul Seth

Data science enthusiast

Mridul is trying to understand the world around us using data and tools from network science, currently at Oxford. He is an open source enthusiast and has been selected for Google Summer of Code, and is involved with NumFOCUS. He has given multiple tutorials at PyCon, PyData, and EuroScipy to share his love of Python and network science.

See More

Technology

  • Python LogoPython
  • Topics

    Case Studies