Italian Senate Elections Exploration Tool

With the upcoming Referendum on the Italian constitution, I wanted to create a small viz about Senate election results and turnout for the regions of Italy.

Moroccan Parliamentary Election Results 2011

For Morocco, the Arab Spring wasn’t such a turbulent event. In comparison to states further along the North African coast like Tunisia, Libya, and Egypt, the Moroccan Constitutional Monarchy proved well adapted to anticipate and ride the swelling wave of democracy. Morocco’s adaptability and relatively graceful response to the Arab Spring could be attributed to several factors, though singling out one decisive factor in its stability is far from easy.

First and most conspicuously is King Mohammed VI. Among leaders in the Arab world, the Moroccan King enjoys consistently high approval ratings and is admired by the vast majority of the country’s inhabitants. Until 2011, the Constitution of Morocco enshrined the King as a sacred figure with a religious duty to guide the faithful of his Kingdom. The cult of personality that surrounds him is also evident in the photos of him that hang in nearly every Moroccan household, business, and public space: the photos include regal-looking portraits taken in his throne room as well as more playful images of the King hunting and riding a jet ski. The benign rule of the King and his legitimacy in the eyes of his people went a long way to making him a credible leader of the country’s reform process. Also, the Moroccan King is well known for being able to successfully co-opt protest movements, steering them into constructive avenues of governance and civil society. And finally, the King retains a tremendous amount of control over the political system and public opinion because Morocco’s democratic and parliamentary institutions are so hobbled by his power and the sheer number of political parties that exist. This means that the system is responsive to him above all other actors or leaders, and that he is able to bend and not break the system when significant events like the Arab Spring occur.

Another plausible explanation of Morocco’s stable and managed transition can be understood by walking down the well-worn path of the Resource Curse hypothesis and taking a brief look at a less-successful Arab Spring transition. Morocco has an economy built on agriculture and tourism, unlike that of Libya. When various armed actors in Libya (the LNA, ISIS, the PFG, etc.) wish to become relevant to the political process, they simply make a menacing move in the direction of the country’s oil infrastructure and can gain traction on the national stage. Morocco has no such monolithic, easily-captured, or lucrative industry and therefore avoids the perils obvious in the Libyan context.

Finally, Morocco likely benefits from the cautionary tale of its neighbor and erstwhile rival Algeria. The punishing civil war in the 1990s between Islamist groups and Algeria’s military/political establishment served as a cautionary tale. Commentators on the Arab Spring have frequently posited that the experience of war in the 1990s was enough to deter any Algerian Spring. It is not a stretch to imagine that the Moroccan street has also taken into account the lesson of Algeria’s civil war and the danger of bitterly splitting society along the lines of Islamism and Secularism. Furthermore, the governing class in Morocco have long understood the importance of a “release valve” for the political pressure that builds in its less-than democratic system, and the country’s Islamist parties play a role in this dynamic.

Instead, King Mohammad VI initiated reforms to the country’s constitution in a concessionary fashion as a response to the Arab Spring. A draft of the amendments was released on June 17th, 2011 and a referendum was held July 1st which upheld the proposed changes. Generally speaking, the amendments entailed devolving powers from the monarchy to elected officials and elevating Amazigh to the status of an official language. The next phase of the reform process was the Parliamentary election held on November 25th.

Winning a plurality of seats in the 2011 election, the Monarchist-Islamist PJD was able to name its leader, Abdelilah Benkirane, as Prime Minister (prior to the constitutional reform, the King would have had the power to name the Prime Minister, usually opting for a technocrat). This was significant for several reasons to Moroccan democratic politics. The victory of the PJD represents the first time that an Islamist party has gained a majority of the seats in the Moroccan Parliament and the first time that an Islamist party has been able put forward their leader as Prime Minister.

For instance, in the 2002 parliamentary elections, the PJD was predicted to have strong support, however the party decided not to field candidates in many of the districts that it would have been allowed to run in. The logic was that the 2002 election was considered very close to the terrorist attacks on 9/11/2001, thus a sweeping victory by the Islamists might reflect badly on Morocco in the eyes of the Western world. Moreover, when the election results were in, the King exercised his power to appoint the PM, not from any of the top parties in the election, but by his own discretion. The bombings in 2003 of various foreign-owned, Western-themed, or Jewish cultural sites in Casablanca also precipitated a response in Parliament when various MPs condemned the PJD and called for it to banned.

Having a Prime Minister and the plurality of seats in parliament, the PJD has made history in Morocco. But this also has a bearing on one of the principal dynamics of the Arab World: Secularism and Islamism in political life. The fault lines of the Post-Arab Spring Sunni world seem principally to be organized around this dynamic.

Libya Body Count 2014-2016

Libya Body Count data comes from, a project which aims to catalog the victims of Libya’s ongoing violence after the 2011 revolution.

LBC releases data structured to include dates, locations, brief notes about the incident, numbers of victims, names of victims, and news articles covering the incident. According to the group’s own methodology (, they have taken care not to double count victims by verifying incidents in multiple news sources when possible, and by minimizing reliance on social media except to verify incidents already covered in other news sources. Official reports released by governmental bodies are also used to verify news articles, though dates and names are not always clear in these sources. Furthermore, the group’s methodology identifies their bias toward a conservative approach to counting deaths in Libya. When there are conflicting accounts about the number of deaths in a given incident, the smaller number is chosen.

Despite LBC’s professed conservative approach and aversion to exaggeration, the scale of Libya’s tragedy is enormous. Since the organization started counting deaths at the beginning of 2014, they have recorded over 5000 killed. Estimates for the number of deaths during the conflict prior to Gaddafi’s overthrow are around 15,000 according to the UN Human Rights Council.

The situation in Libya since Gaddafi’s ousting has been characterized by competing and incomplete sovereignty, principally between the two rival governments, but also among various militia groups and Islamist and Jihadist factions. As a result, compiling a complete account of deaths by violent causes in the country as a whole had not been possible, or indeed aligned with any group’s interests, until the advent of the LBC project.

Before truly working with LBC’s data, some minor massaging was needed, mostly related to the locations cited therein. Because transliteration is often fraught with errors (see: EXPLAINED! Why No One Knows How The Hell To Spell Qaddafi/Gadhafi/Gaddafi/Qadhafi), some place names needed to be made consistent before moving the data into Tableau (Bayda vs Baidha, Nawfiliyah vs Nawfliya, etc.). And once in Tableau, many locations had to be geocoded with their Lat/Long because they did not appear in the list of known places (shamefully, I employed brute-force Googling to accomplish this). Finally, in the line graph portion, I identified each day’s deadliest incident with a link to the related article. Similarly, in the map, I identified each location’s deadliest incident and each location’s most recent incident with their respective links.

The first large spike in the LBC data, in January 2014, can be attributed to skirmishes in southern Libya. Tebu gunmen kidnapped and killed the commander of a brigade of revolutionaries outside of Sebha. This event, layered on top of longstanding marginalization of the Tebu during Gaddafi’s rule and violent clashes in 2012, sparked two weeks of violence and led to the deaths of dozens of fighters on either side.

In Tripoli, the end of 2013 saw the General National Congress (GNC) extending its own mandate by a full year until January 2015, without holding elections. This announcement was met with clashes and protests in Libya’s largest cities. On February 14th, 2014, General Khalifa Haftar called for the GNC to be dissolved and for a new body to be elected to steward the post-revolution political process.

By May 2014, Haftar had galvanized his supporters into the Operation Dignity faction, including Zintani militias, commanders from the Libyan armed forces, and various tribal groups. Opposing Haftar’s coalition was Operation Libya Dawn, which comprised forces loyal to the GNC, powerful Islamist militias from Misrata, militia forces from Zawia, and some Jihadi groups.

The conflict between these two broad coalitions characterized most of the violence in Libya in 2014, and the LBC data bears this out. The graph’s densest activity falls within this time period with various spikes marking major battles for territory and battles to consolidate power in the east of the country under Operation Dignity. A clear drop in the magnitude and frequency of deadly incidents occurs once the two sides agree to a ceasefire in mid-January 2015.

Immediately following the ceasefire, there were a number of deaths as Eastern groups rooted out Islamist elements in Benghazi. Additionally, Egyptian aircraft conducted strikes on ISIS targets in Derna on February 16th in retaliation for ISIS publishing a video of the massacre of Egyptian, Christian workers kidnapped in Libya. And in turn, ISIS carried out one of the deadliest attacks since the overthrow of Ghaddafi (40 killed), in Qubbah, hometown of a prominent politician, Aguilah Saleh, in the internationally recognized House of Representatives.

Another noticeable spike corresponds to the August 2015 clashes in Sirt as ISIS fought armed militias and residents for complete control over the city. January 2016 also contains a large spike, which is identified as the bombing of a Libyan Coast Guard training facility near Zliten in which 70 died.

There is also one apparent spike in the data is actually not attributable to a discreet event. Rather this is a news article which combined a period of increased violent crime (robberies, brawls, and stray bullets) into a death toll of 70. This is visible on May 9th in the data, and the link to the article gives further detail.