You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"In this tutorial we will learn how to identify amendments that were adopted or rejected with a very close majority using the HowTheyVote.eu data set. Amendments that are either passed or rejected with a close margin are probable to have some amount of controversy about their contents. Identifying those can be a first step in finding interesting debates in Parliament.\n",
24
+
"\n",
25
+
"To follow allong with the tutorial, you should already be familiar with data analysis in Python using `pandas`. You don’t need prior knowledge about the European Parliament.\n"
26
+
],
27
+
"metadata": {
28
+
"id": "BO2vOh8UMOmf"
29
+
}
30
+
},
31
+
{
32
+
"cell_type": "markdown",
33
+
"source": [
34
+
"## Context: Amendments in the European Parliament\n",
35
+
"\n",
36
+
"Before a text becomes the official position of the European Parliament, the Parliament's Plenary must vote on it.\n",
37
+
"\n",
38
+
"Usually, Members of Parliament hold multiple votes on a text, due to the process with which Parliaments position is established. At different points in this process, committees and political groups of the Parliament can propose amendments to texts. Each amendment proposes one or many changes to the original document, either exchanging, removing, or adding content. The Plenary then votes on all amendments, either adopting or rejecting them.\n",
39
+
"\n",
40
+
"Once the Plenary has decided on all amendments, it votes on the final wording of the text. If the majority approves the text, it becomes the official position of the European Parliament. If not, the text is rejected."
41
+
],
42
+
"metadata": {
43
+
"id": "PQRf2gM3Iyh_"
44
+
}
45
+
},
46
+
{
47
+
"cell_type": "markdown",
48
+
"source": [
49
+
"## Finding all Votes on a Specific Text\n",
50
+
"\n",
51
+
"Throughout this tutorial, we will use Parliaments resolution condemning [The Russian aggression against Ukraine](https://howtheyvote.eu/votes/140111) from March 2022.\n",
52
+
"\n",
53
+
"As a first step, we need the `votes` table from the HowTheyVote.eu data set:"
"The `votes` table contains one row for each vote that takes place in the Plenary. Therefore, there might be multiple rows for a given text. There are multiple fields in the `votes` table that we could use to identify all votes that belong to the same report, but we advise to use the `reference` column. It contains the official document reference for the report used by the Parliament.\n",
"77 plenary votes took place concerned with this specific resolution. From the `description` field, we can get a (very basic) first glance which part of the report each amendment targeted: For example, \"§ 3 - Am 4\" means that Amendment 4 contained changes to § 3 of the resolution."
110
+
],
111
+
"metadata": {
112
+
"id": "_gEWmkO4OzZ6"
113
+
}
114
+
},
115
+
{
116
+
"cell_type": "markdown",
117
+
"source": [
118
+
"As mentioned in the very beginning, after decising on the amendments, the final text will usually be voted on. This is indicated in our data schame by the `is_main` column. Therefore, the following will retrieve the vote on the final, unified version of the report:"
119
+
],
120
+
"metadata": {
121
+
"id": "GvAkKulQQC2h"
122
+
}
123
+
},
124
+
{
125
+
"cell_type": "code",
126
+
"source": [
127
+
"report_subset[report_subset['is_main'] == True]"
128
+
],
129
+
"metadata": {
130
+
"id": "AWStjKkHOqh2"
131
+
},
132
+
"execution_count": null,
133
+
"outputs": []
134
+
},
135
+
{
136
+
"cell_type": "markdown",
137
+
"source": [
138
+
"## Identifying Votes With a Close Margin"
139
+
],
140
+
"metadata": {
141
+
"id": "bLnTFrV8JX7n"
142
+
}
143
+
},
144
+
{
145
+
"cell_type": "markdown",
146
+
"source": [
147
+
"In the columns `count_for`, `count_against`, `count_abstention`, and `count_did_not_vote` we can see the number of Members of Parliament (MEP) who voted in a specific way on the entirety of this text or who did not partook in the vote. In contrast to not voting at all, MEPs also have the option to actively vote abstain in each vote."
"Note, that this does not give us any information about which specific MEPs voted in which way."
168
+
],
169
+
"metadata": {
170
+
"id": "c8dUButsLy6h"
171
+
}
172
+
},
173
+
{
174
+
"cell_type": "markdown",
175
+
"source": [
176
+
"In order to identify the amendments that got accepted or rejected with a very close margin, we are interested in the difference between votes in favour and votes against. Note, that we calculate this on the basis of a simple majority in this tutorial, i.e., as long as more MEPs voted in favor than against an amendment, it is accepted. This is always true for amendments regarding resolutions.\n",
177
+
"\n",
178
+
"In cases where an amendment was accepted, this difference will be a positive number (as the number of votes in favour will be larger then that of votes against). However, when amendments are narrowly rejected, the opposite will be true, resulting in a negative number for the difference.\n",
179
+
"\n",
180
+
"As we are interested in narrow decisions in general, we will use the absolute difference between votes in favour and against."
"The closest amendment had an absolute difference of 19 votes against versus votes in favour. Although this seems not extremely close, we can also see a substantive difference between the first four votes, which all have margins below 40, and the following ones, which are close to differences of 100 votes and more.\n",
202
+
"\n",
203
+
"## Wrapping Up\n",
204
+
"\n",
205
+
"Identifying these close amendments can be a good starting point to figure out which parts of a text were most controversial in Parliament. Using the `votes` table, those can be identified quite fast, by finding all votes corresponding to a specific text and afterwards finding the narrowest of these decisions.\n",
206
+
"\n",
207
+
"With this information in hand it is now possible to continue with substantive research on the specific amendments, or to take a look at which MEPs and groups voted which way."
0 commit comments