-
Notifications
You must be signed in to change notification settings - Fork 9
/
tv-show-episode-ratings.html
422 lines (358 loc) · 11 KB
/
tv-show-episode-ratings.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0; URL='https://dvatvani.com/'" />
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/pygments.min.css">
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/font-awesome.min.css">
<link href="https://dvatvani.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Dinesh Vatvani Atom">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<meta name="author" content="Dinesh Vatvani" />
<meta name="description" content="Visualising the progression of TV show ratings by episode using Trakt.tv episode ratings" />
<meta name="keywords" content="Python, TV">
<meta property="og:site_name" content="Dinesh Vatvani"/>
<meta property="og:title" content="TV show episode ratings"/>
<meta property="og:description" content="Visualising the progression of TV show ratings by episode using Trakt.tv episode ratings"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="https://dvatvani.github.io/tv-show-episode-ratings.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2016-05-28 22:00:00+01:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="https://dvatvani.github.io/author/dinesh-vatvani.html">
<meta property="article:section" content="Visualisation"/>
<meta property="article:tag" content="Python"/>
<meta property="article:tag" content="TV"/>
<meta property="og:image" content="/static/Logo/radial_barh.png">
<title>Dinesh Vatvani – TV show episode ratings</title>
</head>
<body>
<aside>
<div>
<a href="https://dvatvani.github.io">
<img src="/static/Logo/radial_barh.png" alt="Dinesh Vatvani" title="Dinesh Vatvani">
</a>
<h1><a href="/">Dinesh Vatvani</a></h1>
<p>A Python and data analysis blog</p>
<nav>
<ul class="list">
<li><a href="/pages/about.html#about">About</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-github-square" href="https://github.com/dvatvani" target="_blank"><i class="fa fa-github-square"></i></a></li>
<li><a class="sc-twitter-square" href="https://twitter.com/d_vatvani" target="_blank"><i class="fa fa-twitter-square"></i></a></li>
<li><a class="sc-rss-square" href="http://dvatvani.github.io/feeds/all.atom.xml" target="_blank"><i class="fa fa-rss-square"></i></a></li>
</ul>
</div>
</aside>
<main>
<nav>
<a href="/">Home</a>
<a href="/archives.html">Archives</a>
<a href="/categories.html">Categories</a>
<a href="/tags.html">Tags</a>
<a href="https://dvatvani.github.io/feeds/all.atom.xml">Atom</a>
</nav>
<article>
<header>
<h1 id="tv-show-episode-ratings"><span class="caps">TV</span> show episode ratings</h1>
<p>Posted on Sat 28 May 2016 in <a href="/category/visualisation.html">Visualisation</a></p>
</header>
<div>
<p>This post is about a simple visualisation of the episode ratings of <span class="caps">TV</span> shows. The idea behind this is heavily borrowed from <a href="http://graphtv.kevinformatics.com/">Graph <span class="caps">TV</span></a>. I use that site often and really like it, but the plots it generates are based on <a href="http://www.imdb.com/">IMDb</a> rating data. I’ve always wanted something similar but using <a href="https://trakt.tv/">Trakt.tv</a> rating data instead, so I decided to write a script to do just that. </p>
<p>Below are the episode ratings for the top 10 most popular shows, according to Trakt.tv. The plots are interactive. You can hover over a point to get more information on the episode or pan/zoom on the data using the tools on the bottom left of each plot. </p>
<p>I will likely create a small web app to make it easier to generate the plots online for any tv show at some stage in the future, but if anyone is interested in generating similar plots for other shows now, the Python code to generate the plots is available <a href="https://github.com/dvatvani/trakt-ratings-trends">here on GitHub</a>. A Jupyter notebook with the code can also be found <a href="http://nbviewer.jupyter.org/github/dvatvani/trakt-ratings-trends/blob/master/trakt-ratings-trends.ipynb">here</a>.</p>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921586921842571185746"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/game_of_thrones.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921951669525390596189"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/breaking_bad.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921573256326407222326"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/the_big_bang_theory.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43922826681681423509412"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/the_walking_dead.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921932024407192895674"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/dexter.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921916642569335910854"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/how_i_met_your_mother.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43922452610884251329649"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/sherlock.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el439222331763277133446"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/arrow.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921909720324799833593"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/homeland.js"></script>
<style>
table
{
border-collapse: collapse;
width: 300px;
}
th
{
color: #ffffff;
background-color: #000000;
}
td
{
background-color: #cccccc;
}
table, th, td
{
font-family:Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: right;
}
</style>
<div id="fig_el43921571023769423801765"></div>
<script type="text/javascript" src="https://dvatvani.github.io/static/tv-show-episode-ratings/friends.js"></script>
</div>
<div class="tag-cloud">
<p>
<a href="/tag/python.html">Python</a>
<a href="/tag/tv.html">TV</a>
</p>
</div>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'dvatvani';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</article>
<footer>
<p>© Dinesh Vatvani </p>
<p>Built using <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a></p> </footer>
</main>
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75651339-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"name": "TV show episode ratings",
"headline": "TV show episode ratings",
"datePublished": "2016-05-28 22:00:00+01:00",
"dateModified": "",
"author": {
"@type": "Person",
"name": "Dinesh Vatvani",
"url": "https://dvatvani.github.io/author/dinesh-vatvani.html"
},
"image": "/static/Logo/radial_barh.png",
"url": "https://dvatvani.github.io/tv-show-episode-ratings.html",
"description": "Visualising the progression of TV show ratings by episode using Trakt.tv episode ratings"
}
</script></body>
</html>