Compare manufacturing employment across metro areas in Python
Compare annual manufacturing payroll employment in Raleigh, Charlotte and Atlanta using genuine BLS CES metro data.
A company comparing manufacturing markets needs to know the size and direction of local employment. This example compares annual manufacturing payroll jobs in the Raleigh, Charlotte and Atlanta metropolitan areas between 2019 and 2025. The areas have different starting sizes, so the result shows both employment levels and percentage growth.
Sample data
annual_observations.csv is a genuine subset of the paid annual table: manufacturing employment for the three selected metros in 2019 and 2025, with all 26 fields unchanged. It is free and sufficient to run this example.
The optional input.csv lists the three actual area codes and short labels we selected. These are selection inputs, not invented employment records. The same selections appear in the places list in the Python code below.
Save annual_observations.csv in your working folder. Raleigh here means the Raleigh–Cary metropolitan area, Charlotte includes the North Carolina and South Carolina portions of its metro, and Atlanta means its full metropolitan area. These are not city-limit counts.
Code example
The code selects BLS CES manufacturing code 30000000, employment measure 01, unadjusted U series and published annual M13 estimates. It converts the source's thousands of jobs to jobs and prints the cumulative 2019–2025 change. Paste it into a notebook or run it as a script; no extra packages are required.
Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.
"""Compare manufacturing payroll jobs in three whole metro areas, 2019–2025."""
import csv
from decimal import Decimal
# These real area codes 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'
selected_codes = {p['area_code'] for p in places}
observations = {}
with open('annual_observations.csv', newline='', encoding='utf-8') as file:
for row in csv.DictReader(file):
if (row['area_code'] not in selected_codes
or row['industry_code'] != '30000000'
or row['measure_code'] != '01'
or row['year'] not in {start_year, end_year}
or row['seasonal'] != 'U'):
continue
if row['period'] != 'M13' or row['unit'] != 'thousands_of_jobs':
raise ValueError('Expected published annual payroll employment')
if row['area_type'] != 'metropolitan_statistical_area':
raise ValueError('Use whole metropolitan areas, not divisions')
key = row['area_code'], row['year']
if key in observations:
raise ValueError(f'Duplicate employment key: {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['series_id'] != last['series_id']:
raise ValueError('Comparison must use the same source series')
before, after = Decimal(first['value']), Decimal(last['value'])
if before <= 0:
raise ValueError('Growth needs a positive starting value')
result = {
'area_code': code,
'area_name': last['area_name'],
'jobs_2019': format(before * 1000, '.0f'),
'jobs_2025': format(after * 1000, '.0f'),
'jobs_change': format((after - before) * 1000, '.0f'),
'growth_percent': format((after / before - 1) * 100, '.1f'),
}
results.append(result)
print(f"{place['label']}: {int(result['jobs_2019']):,} to "
f"{int(result['jobs_2025']):,} manufacturing jobs; "
f"{Decimal(result['growth_percent']):+.1f}% ({start_year}–{end_year})")
Analysis of the output
Raleigh: 31,300 to 35,400 manufacturing jobs; +13.1% (2019–2025)
Charlotte: 112,400 to 108,100 manufacturing jobs; -3.8% (2019–2025)
Atlanta: 171,700 to 178,200 manufacturing jobs; +3.8% (2019–2025)
Raleigh's manufacturing payroll grows from 31,300 to 35,400 jobs, an increase of 13.1%. Charlotte declines from 112,400 to 108,100, or 3.8%. Atlanta increases from 171,700 to 178,200, or 3.8%. Raleigh has the fastest percentage growth of these three selections, while Atlanta has the largest employment base and the largest increase in jobs.
This comparison can inform a local market brief or an initial location screen. It is not a ranking of every metro, a forecast, or evidence of a labor shortage. Payroll counts jobs at establishments, not unique residents or available workers. The changes span six years; they are not annual growth rates.
Both endpoints come from the same retained BLS snapshot. They are revised estimates, not the numbers first published in 2019 or 2025. BLS's current metro definitions were introduced in 2025; some historical geography or industry changes can remain when BLS cannot reconstruct history. A shared series identifier does not establish perfectly constant boundaries.
Using the full dataset
After purchase, replace the sample with annual_observations.csv from the archive. Choose other metros in areas.csv, then update places or load your own CSV. Use series.csv and industries.csv to find actual area–industry combinations. Check coverage.csv before changing the years; missing series or periods are not zero.
For monthly work, use monthly_observations.csv. Each row includes exact prior-month and prior-year differences when those periods exist in the delivered window. The differences retain the original units: an employment difference of 1.0 means one thousand jobs, not one percent. Annual M13 estimates remain separate from monthly observations.
Choosing geography and measures
Use the five-character area_code for geographic matching. The accompanying state_code is the BLS series' administrative state code, not an allocation of a cross-state metro to one state. The archive excludes metropolitan divisions, Puerto Rico, the special New York City area and the all-metro aggregate. This keeps nested geographies out of the same comparison.
Hours and earnings describe total private employment in this metro product; they are not manufacturing-specific pay or hours. Those series begin in 2007, 2008 or 2011 depending on metro. Earnings are current dollars. Seasonally adjusted employment is available for total nonfarm only in this selection; detailed industry employment is unadjusted. Industry groups overlap, so do not sum all categories.
For occupation-specific wages, see Occupational Employment & Wages. For a broader industry comparison, see State Industry Employment. Regional Price Parities adds cost context. These are separate purchases with different statistical coverage; review metro boundary vintages before joining. The businesses and labor collection organizes the related choices.
Sources and versions
Source: BLS CES State and Area, bulk files modified October 20, 2026 and retained November 20. The benchmark year is 2025. This edition delivers observations through 2025 and intentionally excludes the partial 2026 history present in the source. The source snapshot, observation window and ACD processing revision are separate identities.
Review the publisher's metro definitions and coverage and comparability guidance when extending the example. Current BLS guidance uses NAICS 2022, while CES industry identifiers remain their own code system.
BLS offers the original data free. ACD's purchase covers preparation, documentation and validation. Processing improvements and documented publisher error corrections to this purchased edition are included; future source editions may be sold separately. See the release notes.
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.