Skip to content

Code for merging state level census data (5 yr age bins, race, sex), 1970-2014

Notifications You must be signed in to change notification settings

btengels/census_age_race

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Merging census Historical Data (Age, Sex, Race)

This mini-project takes an assortment of census spreadsheets and combines them into a single pandas DataFrame (also a Stata .dta file). The variables include age (5 year bins), sex, and race (white/black/other), from 1970 to 2014. The census spreadsheets differ significantly from decade to decade, so the bulk of work is making the data consistent across time.

Other variables include fips (census id for state), year, and name of state. The data are organized with year and state in columns. Each subset of the population is in its own column (e.g. '10-14_black_female' means black females ages 10 to 14). Subtotals by race and gender are also included.

Link to Census data.

  • Author: Benjamin Tengelsen
  • Date: Aug 9, 2016
  • Code: Python 2.7, pandas, numpy

About

Code for merging state level census data (5 yr age bins, race, sex), 1970-2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages