Skip to main content
HomePythonA Network Analysis of Game of Thrones
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 Tasks1,500 XP21,194 Learners

Loved by learners at thousands of companies

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 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

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


Python Python

Mridul Seth HeadshotMridul 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


What do other learners have to say?