Giter Club home page Giter Club logo

census's Introduction

Census

Generating the dataset

I would imagine I can find better ways of getting a census dataset indexed by GEOID, but I settled on using the 2015 ACS, which has a web API. This survey has thousands of fields available, all indexed by GEOID.

How to build the dataset.

  1. Make the directories ./data/ and ./data/json/. These will not be synced by the repo.
  2. Go here and get an API key for the census API. Check your email and copy the key.
  3. Go to ./build_census_table/ and run the command python query_acs.py <API key> population income household tenure marriage education, where <API key> is the key you received from the census bureau. Go get coffee while this runs (It should take a few minutes).
  4. Run the command python build_table.py population income household tenure marriage education to build the table. This will not take as much time.
  5. Boot up the jupyter notebook Rename Columns.ipynb and execute it. This renames the columns to something sensible.

Shape files

Shape files for every census tract in the US can be found here. I added a script in ./data/shapefiles to scrape this page for you - all you should have to do is run python get_shapefiles.py. It is written for mac, but could easily be changed to work on linux. I plan to use the shapefiles for some fun visuals, but I havenn't planned out anything yet.

Glossary of Terms

  1. GEOID. See here
  2. ACS. The American Community Survey. See here. We are using the 2015 5 year estimates to build our dataset.

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.