This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code is adapted from https://gist.github.com/rlucioni/8bdb1092579041ce739c | |
# Also see https://renzolucioni.com/senate-voting-relationships/ | |
# It fetches personal votes from WhereTheyStand.nz and creates a similar | |
# .gexf file. | |
# Due to the rarity of personal votes in New Zealand's Parliament, I'm not sure | |
# how useful this actually is. | |
import json | |
from itertools import combinations |