Repo with data from local elections in Portugal from 2009 to 2013

Overview

autarquicas - local elections in Portugal

Repo with data from local elections in Portugal from 2009 to 2013

Objective

To provide, to all, raw data from the local elections that can be used to for analysis. The dataset has all information that is publicly available at this time

Caveats

This datasets do not have the information about everyone that was on the lists for each party. This is a structural problem in Portugal, as each county (concelho)'s court deals with the approval, and publishing of the lists. Legislation in Portugal only demands that the lists are made public. Courts and city halls follow the law by printing the lists and have the lists glued to windows or at the entrance of the building. No digital format is available to citizens

Thanks to

Micael Carvalho that developed the scrapping and mining code

Luis Guimarais for launching this idea that is already causing some important discussions about transparency and data avaibility in the context of local elections

Filipe Barroso for being there and always trying to help

Miguel Romão for the help in understanding the json struture

Last but not least to Emma for providing such an elegant solution to the unnesting of the json files.

Contributing and Usage of these files

Everyone is most welcome to contribute with scripts that analyse this data. If you use these files please let me know, so we can add to this section.

Next Steps

  • Create unique dataframe with all the data
  • Arrange dataframe columns and rename them to user friendly names
  • Perform indepth analysis of the data
You might also like...
This project intends to take the user's CEP (brazilian adress code) and return the local in which the CEP is placed.
This project intends to take the user's CEP (brazilian adress code) and return the local in which the CEP is placed.

This project aims to simply return the CEP's (the brazilian resident adress code) User of the application. The project uses a request and passes on to

Sequence clustering and database creation using mmseqs, from local fasta files

Sequence clustering and database creation using mmseqs, from local fasta files

Discovering local read-level DNA methylation patterns and DNA methylation heterogeneity in intermediately methylated regions

Discovering local read-level DNA methylation patterns and DNA methylation heterogeneity in intermediately methylated regions

Eatlocal - This package helps users solve PyBites code challenges on their local machine

eatlocal This package helps the user solve Pybites code challenges locally. Inst

Ingestinator is my personal VFX pipeline tool for ingesting folders containing frame sequences that have been pulled and downloaded to a local folder

Ingestinator Ingestinator is my personal VFX pipeline tool for ingesting folders containing frame sequences that have been pulled and downloaded to a

A Pythonic Data Catalog powered by Ray that brings exabyte-level scalability and fast, ACID-compliant, change-data-capture to your big data workloads.

DeltaCAT DeltaCAT is a Pythonic Data Catalog powered by Ray. Its data storage model allows you to define and manage fast, scalable, ACID-compliant dat

AIST++ API This repo contains starter code for using the AIST++ dataset.
AIST++ API This repo contains starter code for using the AIST++ dataset.

AIST++ API This repo contains starter code for using the AIST++ dataset. To download the dataset or explore details of this dataset, please go to our

A toy repo illustrating a minimal installable Python package

MyToy: a minimal Python package This repository contains a minimal, toy Python package with a few files as illustration for students of how to lay out

This is the repo for Uncertainty Quantification 360 Toolkit.

UQ360 The Uncertainty Quantification 360 (UQ360) toolkit is an open-source Python package that provides a diverse set of algorithms to quantify uncert

Comments
  • Treated CSV files

    Treated CSV files

    The treated CSV files have an error in the candidates column. Check code to make sure that the series is appended by the correct order, and all items are where they belong.

    bug 
    opened by JorgeMiguelGomes 1
  • Create Plotly Graphs

    Create Plotly Graphs

    Apologies for the delay -- my uni life got the better of me. I wasn't able to polish the graphs, but I've created several files for cleaning the files and plotting to fix #5.

    clean.py does the following:

    • merges the final dfs together
    • drops columns which have only 1 unique value
    • renames the parties and splits them into coalitions
    • recalculates the percentages (if possible)

    app.py is the file that creates the graphs. Most of the graphs let you choose the X, Y and color categories

    • "Pick-your-own" plot lets you choose the above with no restrictions. Does mean some graphs will look quite weird.
    • "Plot by Parties/Coalition" lets you first filter the data which involves the parties. Tick "coalition only" to only search for votes which all the chosen parties are in (i.e. default is "or", ticking "coalition only" turns the filter into an "and")
    • "Plot by District/County" lets you first filter the data which involves the county / district. If you pick "(All)" for county, it will amalgamate all the info across the counties in that district.

    Feel free to comment / suggest changes! P.S. you don't have to add the hacktoberfest-accepted label if you feel like this is insufficient

    hacktoberfest 
    opened by LyndonFan 0
Owner
Jorge Gomes
Just a n00b. VOST Portugal's National Coordinator. Devs and designers' worst nightmare. "Can't do shite, always coming up with new shite" (everyone)
Jorge Gomes
Code and data for learning to search in local branching

Code and data for learning to search in local branching

Defeng Liu 7 Dec 6, 2022
Python plugin/extra to load data files from an external source (such as AWS S3) to a local directory

Data Loader Plugin - Python Table of Content (ToC) Data Loader Plugin - Python Table of Content (ToC) Overview References Python module Python virtual

Cloud Helpers 2 Jan 10, 2022
Open source home automation that puts local control and privacy first

Home Assistant Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiast

Home Assistant 57k Jan 2, 2023
A small Blender addon for changing an object's local orientation while in edit mode

A small Blender addon for changing an object's local orientation while in edit mode.

Jonathan Lampel 50 Jan 6, 2023
ColabFold / AlphaFold2_advanced on your local PC (or macOS)

LocalColabFold ColabFold / AlphaFold2_advanced on your local PC (or macOS) Installation For Linux Make sure curl and wget commands are already install

Yoshitaka Moriwaki 207 Dec 22, 2022
Werkzeug has a debug console that requires a pin. It's possible to bypass this with an LFI vulnerability or use it as a local privilege escalation vector.

Werkzeug Debug Console Pin Bypass Werkzeug has a debug console that requires a pin by default. It's possible to bypass this with an LFI vulnerability

Wyatt Dahlenburg 23 Dec 17, 2022
A basic layout of atm working of my local database

Software for working Banking service ?? This project was developed for Banking service. mysql server is required To have mysql server on your system u

satya 1 Oct 21, 2021
A basic layout of atm working of my local database

Software for working Banking service ?? This project was developed for Banking service. mysql server is required To have mysql server on your system u

satya 1 Oct 21, 2021
A lightweight solution for local Particle development.

neopo A lightweight solution for local Particle development. Features Builds Particle projects locally without any overhead. Compatible with Particle

Nathan Robinson 19 Jan 1, 2023
Shell Trality API for local development.

Trality Simulator Intro This package is a work in progress. It allows local development of Trality bots in an IDE such as VS Code. The package provide

CrypTrality 1 Nov 17, 2021