Analyzing US Census Data in Python
Learn to use the Census API to work with demographic and socioeconomic data.
Start Course for Free5 hours16 videos57 exercises6,194 learnersStatement of Accomplishment
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Training 2 or more people?
Try DataCamp for BusinessLoved by learners at thousands of companies
Course Description
Data scientists in diverse fields, from marketing to public health to civic hacking, need to work with demographic and socioeconomic data. Government census agencies offer richly detailed, high-quality datasets, but the number of variables and intricacies of administrative geographies (what is a Census tract anyway?) can make approaching this goldmine a daunting process. This course will introduce you to the Decennial Census and the annual American Community Survey, and show you where to find data on household income, commuting, race, family structure, and other topics that may interest you. You will use Python to request this data using the Census API for large and small geographies. You will manipulate the data using pandas, and create derived data such as a measure of segregation. You will also get a taste of the mapping capabilities of geopandas.
For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more- 1
Decennial Census of Population and Housing
FreeStart exploring Census data products with the Decennial Census. Use the Census API and the requests package to retrieve data, load into pandas data frames, and conduct exploratory visualization in seaborn. Learn about important Census geographies, including states, counties, and tracts.
Census Subject Tables50 xpAggregate and Calculate Proportions100 xpCalculate Proportions100 xpIdentify Extreme Values100 xpUsing the Census API50 xpThe Basic API Request100 xpThe API Response and Pandas100 xpAPI to Visualization: Group Quarters100 xpCensus Geographies50 xpSpecific Places100 xpCongressional Districts by State100 xpZip Code Tabulation Areas100 xp - 2
American Community Survey
Explore topics such as health insurance coverage and gentrification using the American Community Survey. Calculate Margins of Error and explore change over time. Create choropleth maps using geopandas.
Annual Change50 xpHome Values in California100 xpHealth Insurance Coverage100 xpFinding ACS Tables by Subject50 xpMargins of Error50 xpPlotting Margins of Error over Time100 xpSignificance of Difference of Estimates100 xpSignificance of Difference of Proportions100 xpBasic Mapping with Geopandas50 xpChoropleth Map of Internet Access100 xpProportional Symbol Map of Households w/ Internet100 xpBivariate Map of Broadband Access100 xpNeighborhood Change50 xpIdentifying Gentrifiable Tracts100 xpIdentifying Gentrifying Tracts100 xpMapping Gentrification100 xp - 3
Measuring Segregation
Explore racial segregation in America. Calculate the Index of Dissimilarity, and important measure of segregation. Learn about and use Metropolitan Statistical Areas, and important geography for urban research. Study segregation changes over time in Chicago.
Measuring Segregation: The Index of Dissimilarity50 xpCalculating D for One State100 xpCalculating D in a Loop100 xpCalculating D Using Grouping in Pandas100 xpMetropolitan Segregation50 xpJoining Tracts and Metropolitan Areas100 xpCreate Function to Calculate D100 xpCharacteristics of Segregated Metros100 xpSegregation Impacts: Unemployment50 xpCalculating Unemployment100 xpImpacts of Black-White Segregation by Sex100 xpWhite and Black Unemployment100 xpNeighborhood Segregation Over Time50 xpTract Demographics in a Segregated City100 xpSegregation Begets More Segregation100 xpPopulation Decline in Segregated Neighborhoods100 xp - 4
Exploring Census Topics
In this chapter, you will apply what you have learned to four topical studies. Explore unemployment by race and ethnicity; commuting patterns and worker density; immigration and state-to-state population flows; and rent burden in San Francisco.
Employment and the Labor Force50 xpUnemployment100 xpLabor Force Participation100 xpCommuting50 xpHeatmap of Travel Times By Commute Mode100 xpWorker Population100 xpMigration50 xpImmigration100 xpState-to-State Flows100 xpIs the Rent Too Damn High?50 xpRent Burden in San Francisco100 xpHigh Rent and Rent Burden100 xpCongratulations!50 xp
For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and moredatasets
Hispanic Origin & Race by State, 2010Household Internet Access by State, 2017Brooklyn Tract Demographics, 2000Brooklyn Tract Geometries, 2000Brooklyn Tract Demographics, 2010Brooklyn Tract Geometries, 2010collaborators
prerequisites
Data Manipulation with pandasLee Hachadoorian
See MoreAsst. Professor of Instruction, Temple University
What do other learners have to say?
FAQs
Join over 14 million learners and start Analyzing US Census Data in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.