Demographic Analysis Workflow using Census API in Jupyter Notebook: 1990-2000 Population Size and Change
Principal Investigator(s): View help for Principal Investigator(s) Donghwan Gu, Texas A&M University; Nathanael Rosenheim, Texas A&M University
Version: View help for Version V1
| Name | File Type | Size | Last Modified |
|---|---|---|---|
|
|
text/csv | 266 bytes | 07/30/2020 10:13:AM |
|
|
text/plain | 42.7 KB | 07/30/2020 08:21:AM |
|
|
application/pdf | 335.5 KB | 07/30/2020 10:19:AM |
Project Citation:
Project Description
The Python code was developed in Google Colaboratory, or Google Colab for short, which is an Integrated Development Environment (IDE) of JupyterLab and streamlines package installation, code collaboration and management. The Census API is used to obtain population counts from the 1990 and 2000 Decennial Census (Summary File 1, 100% data). All downloaded data are maintained in the notebook's temporary working directory while in use. The data are also stored separately with this archive.
The notebook features extensive explanations, comments, code snippets, and code output. The notebook can be viewed in a PDF format or downloaded and opened in Google Colab. References to external resources are also provided for the various functional components.
The notebook features code to perform the following functions:
- install/import necessary Python packages
- introduce a Census API Query
- download Census data via CensusAPI
- manipulate Census tabular data
- calculate absolute change and percent change
- formatting numbers
- export the table to csv
Scope of Project
Methodology
Related Publications
Published Versions
Found a serious problem with the data, such as disclosure risk or copyrighted content? Let us know.
This material is distributed exactly as received from the data depositor. As of April 2026, depositors are required to submit study materials in accessible formats. ICPSR has not reviewed, checked, or processed this material. For additional information about the study, please contact the investigator(s) directly. If you have questions about the accessibility of materials distributed by ICPSR or require further assistance, please visit ICPSR's Accessibility Center.