You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/census.md
+90-2Lines changed: 90 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ exercises: 5
8
8
9
9
- What are the kinds of datasets available from the U.S. Census Bureau?
10
10
- How can you visualize and analyze these datasets for your region of interest?
11
-
- Where can you find additional information about a particular dataset?
12
11
- How do you combine spatial and tabular data from the Census Bureau?
13
12
- What are the variables in the ACS dataset?
14
13
@@ -42,7 +41,7 @@ The ANSI include both the Federal Information Processing Series (FIPS) codes and
42
41
The fields in the shapefiles include these information. For example, “STATEFP” filed means state FIPS code, and “STATENS” field means state GNIS code.
43
42
County level FIPS codes usually have five digits. The first two are the FIPS code of the state to which the county belongs and the rest three are county codes.
44
43
45
-

44
+
![Census USA Map] <imgsrc="/census_map.jpg"alt="Census Map"> ("A map showing U.S. Census Bureau TIGER/Line shapefile boundaries for states and counties.")
46
45
47
46
### Decennial Census of Population and Housing
48
47
@@ -97,6 +96,95 @@ In addition to demographic and housing data, ACS also include:
97
96
98
97
::::::::::::::::::::::::::::::::::::::::::::::::
99
98
99
+
100
+
## Expert Tutorial: Accessing ACS Data via the Census API
101
+
102
+
### Step 1 - Explore the Census API
103
+
104
+
1. Go to [Census Developers Page](https://www.census.gov/data/developers.html).
105
+
2. Select **Available APIs** (left side of the search bar).
106
+
3. Scroll down and click on the desired API dataset. For this tutorial, we choose **American Community Survey (ACS)**.
107
+
4. The ACS offers multiple products — **1-year**, **3-year**, and **5-year estimates**.
108
+
- 5-year data provides a longer time frame.
109
+
- For example:
110
+
-**2023 ACS 5-Year** covers 2019–2023.
111
+
-**2022 ACS 5-Year** covers 2018–2022.
112
+
- We will use **2023**.
113
+
5. Scroll to **Data Profiles** and review the “Example Call” links — these are the base API URLs used in Python or directly in a browser.
114
+
6. Under **Data Profiles**, click the `html` link next to **2023 ACS Comparison Profiles Variables**. This page lists all available variables and their codes.
115
+
116
+
117
+
### Step 2 - Understanding API Links for Geographic Levels
118
+
119
+
120
+
The ACS API provides different base links for:
121
+
-**Country**
122
+
-**State**
123
+
-**Tract within a state**
124
+
125
+
For tract-level data, use the “state > county > tract” pattern.
126
+
127
+
Example base link for California (state code `06`):
0 commit comments