U.S. flag

An official website of the United States government

icon-dot-gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Python code used to download U.S. Census Bureau data for public-supply water service areas

This child item describes Python code used to query census data from the TigerWeb Representational State Transfer (REST) services and the U.S. Census Bureau Application Programming Interface (API). These data were needed as input feature variables for a machine learning model to predict public supply water use for the conterminous United States. Census data were retrieved for public-supply water service areas, but the census data collector could be used to retrieve data for other areas of interest. This dataset is part of a larger data release using machine learning to predict public supply water use for 12-digit hydrologic units from 2000-2020. Data retrieved by the census data collector code were used as input features in the public supply delivery and water use machine learning models. This page includes the following file: census_data_collector.zip - a zip file containing the census data collector Python code used to retrieve data from the U.S. Census Bureau and a README file.

Get Data and Metadata
Author(s) Carol L Luukkonen, Ayman H Alzraiee, Joshua D Larsen orcid, Donald Martin, Deidre M Herbert, Cheryl A Buchwald orcid, Natalie A Houston orcid, Kristen J Valseth orcid, Scott Paulinski, Lisa D Miller orcid, Richard Niswonger orcid, Jana S Stewart orcid, Cheryl A Dieter orcid
Publication Date 2024-08-27
Beginning Date of Data 2000-01-01
Ending Date of Data 2020-12-31
Data Contact
DOI https://doi.org/10.5066/P9FUL880
Citation Luukkonen, C.L., Alzraiee, A.H., Larsen, J.D., Martin, D., Herbert, D.M., Buchwald, C.A., Houston, N.A., Valseth, K.J., Paulinski, S., Miller, L.D., Niswonger, R., Stewart, J.S., and Dieter, C.A., 2024, Python code used to download U.S. Census Bureau data for public-supply water service areas: U.S. Geological Survey data release, https://doi.org/10.5066/P9FUL880.
Metadata Contact
Metadata Date 2024-08-27
Related Publication
Citations of these data No citations of these data are known at this time.
Access public
License http://www.usa.gov/publicdomain/label/1.0/
Loading...
Harvest Source: ScienceBase
Harvest Date: 2024-09-09T13:42:32.725Z