Code Monkey home page Code Monkey logo

acs2postgres's Introduction

acs2postgres

This repository imports American Community Survey (ACS) data into PostgreSQL. The hard work has already been done by Census Reporter. We add the following features:

  • Make the state (e.g. Illinois, California) a variable
  • Fix issues with the 2009 ACS 5-year data
  • Run the workflow using drake

Usage

  1. Clone the repository and create the file acs2postgres/default_profile by specifying PostgreSQL credentials and the desired U.S. State in the following template:
PGHOST=
PGDATABASE=
PGUSER=
PGPASSWORD=

STATE=Illinois
STATE_ABBREV=il

If the state name has multiple words, remove the space: e.g. for North Carolina use STATE=NorthCarolina.

  1. Change to the acs2postgres directory and run drake.
drake -w Drakefile
  1. Consult the census-postgres documentation for full technical details. See also the census documentation for each dataset, especially the:
  • Appendix (e.g. 2015) for information about census tables, and the
  • Sequence Number and Table Number Lookup (e.g. 2015) for information about variables.

TODO

  • Expand to Decennial and ACS 1yr and 3yr
  • Rename folders per state

acs2postgres's People

Watchers

 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.