Skip to content

Instantly share code, notes, and snippets.

@dfeldman
Last active February 24, 2016 23:39
Show Gist options
  • Save dfeldman/c0a3b9836748b4591c7d to your computer and use it in GitHub Desktop.
Save dfeldman/c0a3b9836748b4591c7d to your computer and use it in GitHub Desktop.
get_census_data
import Census
# Get your own key!
c=census.Census("b99ef7ede80606207d3a3836bafdc00dd90a244d")
c.acs.zipcode('B19001_001E', 'zip:55406')
# Available variables: [{u'zip code tabulation area': u'55406', u'B19001_001E': u'14900'}]
# Get output like:
# [{u'zip code tabulation area': u'55406', u'B19001_001E': u'14900'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment