GithubHelp home page GithubHelp logo

isabella232 / leso Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nprapps/leso

0.0 0.0 0.0 37.89 MB

Processing scripts for Defense Logistics Agency LESO data

Home Page: http://blog.apps.npr.org/2014/09/02/reusable-data-processing.html

License: MIT License

Shell 75.65% Python 24.35%

leso's Introduction

LESO data

Update, 5-20-15: The scripts have been changed to use the latest data dumps from the Defense Logisitics Agency. The new data shows equipment distributed to agencies rather than counties. The counts differ from the previous dataset, and summaries based on correlating census data with counties have been removed. The older workflow and data remains available in the "2014_county_data" branch.

These processing scripts are described in depth in the NPR Visuals blog post, A Resuable Data Processing Workflow.

Requirements

  • bash
  • Python
  • PostgreSQL

Installation

Install project requirements (preferably in a virtualenv):

pip install -r requirements.txt

Import the data

To clean the data and build the tables, run:

./build.sh

Each step can be run individually.

To import the data into a PostgreSQL database:

./import.sh

To generate summary tables as CSVs:

./summarize.sh

To generate db ready data files and per-state data files with FIPS codes and pre-computed total cost columns:

./export.sh

leso's People

Contributors

eads avatar tylerfisher 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.