Coder Social home page Coder Social logo

syyunn / actblue-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from publici/actblue-analysis

0.0 1.0 0.0 10.88 MB

Analysis for the story "How ActBlue is trying to turn small donations into a blue wave"

Home Page: https://www.publicintegrity.org/2018/10/25/22367/how-actblue-trying-turn-small-donations-blue-wave

Jupyter Notebook 41.21% HTML 58.77% CSS 0.02%

actblue-analysis's Introduction

ActBlue analysis

Who did this?

This is an analysis from the Center for Public Integrity's data team in partnership with FiveThirtyEight. It was created by Chris Zubak-Skees. The analysis was informed by questions posed by political reporter Carrie Levine.

What's here?

  • Analysis - An analysis of ActBlue and other FEC filings.
  • Data - Spreadsheets produced by the analysis.

Why did we do this?

What does it mean when one organization raises more than $2.9 billion for democrats? The Center set out to answer that question.

How did we do it?

This analysis relied on a PostgreSQL database of more than 289,500 campaign finance filings loaded by the Center using fec-loader. These were analyzed using SQL, Pandas and Jupyter notebook software.

The notebook was developed on MacOS 10.13 with git, pipenv and Python 3 installed. These instructions are specific to that environment, but should be adaptable to others:

git clone https://github.com/PublicI/actblue-analysis.git
cd actblue-analysis
pipenv install
pipenv shell
python -m ipykernel install --user --name=actblue-analysis
jupyter lab

Query results are persisted to Pickle files, so the notebook can be run without access to the database.

If you do have access to a PostgreSQL database of campaign finance records in the correct schema and want to modify the queries, copy config.json.example to config.json, then update the values in config.json to the correct hostname and password.

actblue-analysis's People

Contributors

chriszs avatar

Watchers

 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.