Eurovision voting similarity

With the 2017 Eurovision season in the full swing, let’s take one last look at some voting patterns that emerged during the Eurovision 2016. Data First, I downloaded the detailed voting results of the Grand Final of 2016 from the official Eurovision website. This is a neatly organized xls file. It lets you look at […]

Read more
NaN value breaks sorting in Python

Some time ago, I gave a talk at Boston Python meetup. Bottom line – NaN values in a list silently break sorting. Details below. NaN stands for not a number. It is a numeric data type used for undefined and unrepresentable values. For example: In [1]: a = float(‘inf’) b = float(‘inf’) In [2]: a / b […]

Read more