Coder Social home page Coder Social logo

elecciones_argentina_2015's Introduction

Elecciones Argentina 2015

Dump de datos en formato CSV del programa http://www.resultados.gob.ar/inimesas.htm

¿Por qué?

Los datos desagregado por mesa que proporciona la Justicia Electoral están empaquetados en una aplicación para Windows utilizando una base de datos en formato Microsoft Access (.mdb) que es dificil de utilizar con otras aplicaciones.

Liberando los datos

Los csv se extrajeron a través del software libre mdbtools :

$ sudo apt-get install mdbtools

Instalar el programa con Wine y luego, utilizando IPython

In [1]: cd "~/.wine/drive_c/Program Files (x86)/Argentina 2015/DATOS"


In [2]: !!mdb-tables ARGENTINA2015.mdb
Out[2]: ['IndEle MesasCandidaturaConcejales MesasCandidaturaDProvinciales MesasCandidaturaGobernador MesasCandidaturaPNacionales MesasCandidaturaPRegionales MesasCandidaturaPresidente MesasCandidaturaSNacionales MesasCandidaturaSProvinciales MesasConcejales MesasDProvinciales MesasGobernador MesasPNacionales MesasPRegionales MesasPresidente MesasSNacionales MesasSublemaConcejales MesasSublemaDNacionales MesasSublemaDProvinciales MesasSublemaPNacionales MesasSublemaPRegionales MesasSublemaPresidente MesasSublemaSNacionales MesasSublemaSProvinciales NomAmbitos NomCandidatosPresidente NomElecciones NomMunicipios NomPartidos TotalCandidaturaConcejales TotalCandidaturaDNacionales TotalCandidaturaDProvinciales TotalCandidaturaPNacionales TotalCandidaturaPRegionales TotalCandidaturaPresidente TotalCandidaturaSNacionales TotalCandidaturaSProvinciales TotalConcejales TotalDNacionales TotalDProvinciales TotalPNacionales TotalPRegionales TotalPresidente TotalSNacionales TotalSProvinciales TotalSubLemaConcejales TotalSubLemaDProvinciales TotalSubLemaGobernador TotalSubLemaPNacionales TotalSubLemaPRegionales TotalSubLemaPresidente TotalSubLemaSNacionales TotalSubLemaSProvinciales MesasCandidaturaDNacionales MesasDNacionales MesasSProvinciales MesasSublemaGobernador NomCandidatosGobernador TotalCandidaturaGobernador TotalGobernador TotalSubLemaDNacionales ']

In [3]: tables = _[0].split()

In [4]: for table in tables:
   ...:     !mdb-export ARGENTINA2015.mdb {table} > {table}.csv
   ...:

Otras elecciones

elecciones_argentina_2015's People

Contributors

mgaitan avatar

Stargazers

Matías Agustín Méndez avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.