Home » News & Blogs » Graphs of Thrones
Bookmark and Share
If We Assume

Graphs of Thrones

21 May 2019, 04:47 UTC
Graphs of Thrones
(200 words excerpt, click title or image to see full post)

orA Chart of Ice and Fireor some other cheesy pun....That's right, I'm jumping on the Game of Thrones bandwagon, a mere day after the series has concluded its broadcast run on HBO. Many have already examined the "downfall" of GoT in ratings over this past season (there are NINE such posts at present on r/dataisbeautiful at time of writing!). I'll spare you my takes on creativity versus expectations, and instead I thought it would be fun to look at other (relatively) simple ways we can analyze 'Thrones: Natural Language Processing!So I'm dusting off Python's NLTK package, which I've used many times in the past (my favorite Star Trek example is here). All the code for this project can be found on my GitHub, of course!First, as ever, we need data! Shout-out to this blog post (in R) from 2017 who linked their source: here! I was able to easily step through all 8 seasons of shows and scrape the HTML for the script (well, at least the dialog). There is one bug in the data: Season 7 Ep 1 was missing - not a big deal, just needs to be deleted from our analysis throughout!Go look through the code for ...

Latest Vodcast

Latest Podcast

Advertise PTTU

NASA Picture of the Day

Astronomy Picture of the Day

astronomy_pod