Compare metro employment growth and unemployment in Python
Compare resident employment and labor-force growth with unemployment rates in Raleigh, Charlotte and Atlanta using genuine BLS LAUS estimates.
A regional market brief often needs both employment growth and unemployment. This example compares December 2019 with December 2025 in Raleigh, Charlotte and Atlanta, using seasonally adjusted BLS estimates of people who live in each metropolitan area. It shows how employment can grow while the unemployment rate also rises.
Sample data
monthly_observations.csv is a free, genuine subset of the paid monthly table: the three metros in December 2019 and December 2025, with both adjustment variants and all 32 fields unchanged. The code selects the seasonally adjusted rows.
The optional input.csv lists the actual metro codes and short labels selected for this comparison. The same selections appear in the places list in the Python code below. There are no invented employment observations.
Save monthly_observations.csv in your working folder. Raleigh means the whole Raleigh–Cary metro, Charlotte includes its North Carolina and South Carolina portions, and Atlanta means its full metro. These are not city-limit counts.
Code example
The code selects December (M12) and seasonally adjusted estimates (S), checks for missing or repeated records, and prints employment growth, labor-force growth and the published unemployment rates. Counts are people, so no thousands-to-units conversion is needed. The code works in a notebook, IPython or a script with standard Python.
Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.
"""Compare resident employment and unemployment in three metros, December 2019–2025."""
import csv
from decimal import Decimal
# These real metro selections also appear in the optional example_input.csv.
places = [
{'area_code': '39580', 'label': 'Raleigh'},
{'area_code': '16740', 'label': 'Charlotte'},
{'area_code': '12060', 'label': 'Atlanta'},
]
start_year, end_year = '2019', '2025'
observations = {}
with open('monthly_observations.csv', newline='', encoding='utf-8') as file:
for row in csv.DictReader(file):
if (row['area_code'] not in {p['area_code'] for p in places}
or row['year'] not in {start_year, end_year}
or row['period'] != 'M12' or row['seasonal'] != 'S'):
continue
if row['area_type'] != 'metropolitan_statistical_area':
raise ValueError('Use whole metropolitan areas')
if row['availability'] != 'reported':
raise ValueError('Required estimate is unavailable; do not replace it with zero')
key = row['area_code'], row['year']
if key in observations:
raise ValueError(f'Duplicate metro-month: {key}')
observations[key] = row
results = []
for place in places:
code = place['area_code']
if any((code, year) not in observations for year in [start_year, end_year]):
raise ValueError(f'Missing required observation for {place["label"]}')
first, last = observations[code, start_year], observations[code, end_year]
if first['laus_area_code'] != last['laus_area_code']:
raise ValueError('Comparison must use the same metro definition')
before, after = Decimal(first['employment']), Decimal(last['employment'])
lf_before, lf_after = Decimal(first['labor_force']), Decimal(last['labor_force'])
if before <= 0 or lf_before <= 0:
raise ValueError('Growth needs positive starting values')
result = {
'area_code': code,
'area_name': last['area_name'],
'employment_2019': str(before),
'employment_2025': str(after),
'employment_growth_percent': format((after / before - 1) * 100, '.1f'),
'labor_force_growth_percent': format((lf_after / lf_before - 1) * 100, '.1f'),
'unemployment_rate_2019': first['unemployment_rate'],
'unemployment_rate_2025': last['unemployment_rate'],
'unemployment_rate_change_pp': format(Decimal(last['unemployment_rate']) - Decimal(first['unemployment_rate']), '.1f'),
}
results.append(result)
print(f"{place['label']}: resident employment {before:,.0f} to {after:,.0f} "
f"({Decimal(result['employment_growth_percent']):+.1f}%); "
f"labor force {Decimal(result['labor_force_growth_percent']):+.1f}%; "
f"unemployment rate {first['unemployment_rate']}% to {last['unemployment_rate']}%")
Analysis of the output
Raleigh: resident employment 725,143 to 836,298 (+15.3%); labor force +15.5%; unemployment rate 3.2% to 3.3%
Charlotte: resident employment 1,323,662 to 1,437,711 (+8.6%); labor force +9.3%; unemployment rate 3.4% to 4%
Atlanta: resident employment 3,047,232 to 3,203,634 (+5.1%); labor force +5.4%; unemployment rate 3.2% to 3.5%
Raleigh's employed resident population increases from 725,143 to 836,298, or 15.3%. Charlotte grows 8.6%, and Atlanta grows 5.1%. These are cumulative changes between two December estimates, not annual growth rates or a ranking of every metro.
In each selection, labor-force growth slightly exceeds employment growth, and the unemployment rate is higher at the second endpoint. Charlotte illustrates the distinction: employment grows 8.6%, while its labor force grows 9.3% and the unemployment rate moves from 3.4% to 4.0%. An expanding employed population and a higher unemployment rate can coexist because the rate's denominator is the labor force.
This supports a local market comparison. It does not identify why the changes occurred, prove statistical significance, or measure a labor shortage. The unemployed population is not a count of people qualified or available for a particular job.
Using the full dataset
After purchase, replace the sample with monthly_observations.csv from the archive. Choose other metro codes from areas.csv, then change the places list or load your own CSV. Check coverage.csv before changing the dates. Cleveland and Seattle have shorter histories, and explicit source gaps remain blank with flags.
The monthly file includes same-month prior-year values and differences. Count differences are people; unemployment-rate differences are percentage points. Filter to one adjustment before joining by area_code, year and period. Adjusted and unadjusted estimates describe alternative versions of the same population.
Monthly and annual comparisons
annual_observations.csv contains BLS's separately published unadjusted annual estimates. October 2025 data are unavailable because of the federal shutdown, and the 2025 annual estimates use eleven months, excluding October. The source flags preserve that distinction. The December comparison here has reported values at both endpoints; do not replace a missing October with zero or silently manufacture a twelve-month average.
Comparing residents with payroll jobs
The separately purchased Metro Industry Employment product describes jobs at establishments, including industry detail. This LAUS product describes employed and unemployed residents. A person can hold multiple jobs or commute across a metro boundary, and the programs cover different work populations.
For a side-by-side comparison, choose the same metro code and month, confirm matching boundary definitions, and select one adjustment in each source. Keep jobs and people labeled separately; subtracting them does not measure vacancies, worker shortages or commuting. County Labor Force History is the annual county alternative. Find these choices in the businesses and labor collection.
Sources and versions
Source: BLS Local Area Unemployment Statistics (LAUS). The unadjusted bulk file was modified November 20, 2026; the adjusted workbook is dated October 28, 2026. Both were retained November 20, and this edition stops at December 2025. The adjustment variants therefore have different publication dates; their numerical difference is not an isolated measure of seasonality.
This is revised history from one retained snapshot, not the estimates as first released. BLS introduced its current metro definitions in 2025 and generally reconstructed history to 1990. Population-control and methodological discontinuities can remain. Review geography and periods before combining another product, even when its CBSA identifier matches.
The original bulk data and adjusted workbook are free from BLS. ACD sells preparation, documentation and validation. Processing improvements and publisher error corrections to this purchased edition are included; future source editions may be separately purchased. See the release notes and BLS's definitions.
Example checked November 20, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.