mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
add uk data of political compass
This commit is contained in:
@@ -14,19 +14,15 @@ def get_compass_parties(year=2017, country='de'):
|
|||||||
else:
|
else:
|
||||||
raise Exception("Year " + str(year) + " does not exist for " + country)
|
raise Exception("Year " + str(year) + " does not exist for " + country)
|
||||||
elif country == 'uk':
|
elif country == 'uk':
|
||||||
if year == 2017:
|
if year == 2019:
|
||||||
# TODO: add data
|
data = [[9.5, 7], [7, 8], [-3, -5], [-4.5, -1.5], [4, 2.5], [-0.5, -0.5], [-2, 1.5], [-0.5, -0.5]]
|
||||||
data = []
|
index = ['Conservative', 'Democratic Unionist Party', 'Green Party', 'Labour', 'Liberal Democrat', 'Plaid Cymru', 'Scottish National Party', 'Social Democratic & Labour Party']
|
||||||
index = []
|
elif year == 2017:
|
||||||
|
data = [[8.5, 7.5], [5.5, 8], [-2.5, -4.5], [-4, -2], [3.5, 1], [-0.5, -1.5], [-1.5, 1.5]]
|
||||||
|
index = ['Conservative', 'Democratic Unionist Party', 'Green Party', 'Labour', 'Liberal Democrat', 'Plaid Cymru', 'Scottish National Party']
|
||||||
elif year == 2015:
|
elif year == 2015:
|
||||||
# TODO: add data
|
data = [[9, 6.5], [5, 8.5], [-4, -5], [4, 5.5], [5, 2.5], [-2.5, -1], [-0.5, 1.5], [-2, 4], [-2.5, -0.5], [8, 8]]
|
||||||
data = []
|
index = ['Conservative', 'Democratic Unionist Party', 'Green Party', 'Labour', 'Liberal Democrat', 'Plaid Cymru', 'Scottish National Party', 'Sinn Féin', 'Social Democratic & Labour Party', 'UK Independence Party']
|
||||||
index = []
|
|
||||||
elif year == 2011:
|
|
||||||
# TODO: add data
|
|
||||||
data = []
|
|
||||||
index = []
|
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
raise Exception("Year " + str(year) + " does not exist for " + country)
|
raise Exception("Year " + str(year) + " does not exist for " + country)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user