Compare state manufacturing jobs and real output in Python
Join BLS state manufacturing payroll estimates with BEA real GDP in North Carolina, Georgia and Virginia using genuine annual data.
A state's manufacturing output can grow while its payroll employment falls. This example compares jobs and real output in North Carolina, Georgia and Virginia between 2019 and 2025, using annual BLS employment estimates and BEA state GDP. It also reports 2025 average weekly hours and hourly earnings.
Sample data
annual_observations.csv is a genuine subset of the paid annual table: manufacturing in three states, two years and four measures, with all 24 fields unchanged. state_industry_gdp_sample.csv contains six genuine rows from the separately sold State GDP by Industry History. Both samples are free; they are sufficient to run this example.
The optional input.csv lists our three selected state identifiers and names. These are selection inputs, not invented employment data. The same selections appear in the places list in the Python code below.
Save both sample files with the names shown above in your working folder. The employment download also includes the small GDP excerpt and its provenance so the packaged example works on its own.
Code example
Match the two-character state FIPS code and year. We explicitly compare BLS CES manufacturing code 30000000 with BEA manufacturing line 12 (NAICS 31–33). These are different industry identifiers; matching the strings would be wrong. This reviewed broad-industry comparison does not establish a crosswalk for other industries.
The code selects published annual M13 values and unadjusted U series. It calculates cumulative changes from 2019 to 2025 and prints one result per state. Paste it into a notebook or run it as a Python 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 jobs and real output in three states. Notebook-ready."""
import csv
from decimal import Decimal
# These state selections are also supplied in example_input.csv.
places = [
{'state_code': '37', 'state': 'North Carolina'},
{'state_code': '13', 'state': 'Georgia'},
{'state_code': '51', 'state': 'Virginia'},
]
wanted = {p['state_code'] for p in places}
jobs = {}
with open('annual_observations.csv', newline='', encoding='utf-8') as source:
for row in csv.DictReader(source):
if (row['state_code'] in wanted and row['industry_code'] == '30000000'
and row['seasonal'] == 'U' and row['period'] == 'M13'
and row['year'] in {'2019', '2025'}):
key = row['state_code'], row['year'], row['measure_code']
if key in jobs:
raise ValueError(f'Duplicate employment key: {key}')
jobs[key] = row
# Six genuine manufacturing rows from the separately sold State GDP history.
# This small companion sample is included free; it is not the full GDP product.
gdp = {}
with open('state_industry_gdp_sample.csv', newline='', encoding='utf-8') as source:
for row in csv.DictReader(source):
if (row['geography_type'] == 'state' and row['state_fips'] in wanted
and row['industry_code'] == '12' and row['year'] in {'2019', '2025'}):
key = row['state_fips'], row['year']
if key in gdp:
raise ValueError(f'Duplicate GDP key: {key}')
if row['real_status'] != 'reported':
raise ValueError(f'GDP value is not reported: {key}')
gdp[key] = row
def growth(before, after):
return (Decimal(after) / Decimal(before) - 1) * 100
results = []
print('Manufacturing, 2019–2025: payroll jobs and real output')
for place in places:
state = place['state_code']
required = [(state, y, m) for y in ['2019', '2025'] for m in ['01', '02', '03', '11']]
if any(key not in jobs for key in required) or any((state, y) not in gdp for y in ['2019', '2025']):
raise ValueError(f'Missing required observation for {place["state"]}')
before, after = jobs[state, '2019', '01'], jobs[state, '2025', '01']
job_growth = growth(before['value'], after['value'])
output_growth = growth(gdp[state, '2019']['real_gdp_millions'], gdp[state, '2025']['real_gdp_millions'])
result = dict(state_code=state, state=place['state'], jobs_2019_thousands=before['value'],
jobs_2025_thousands=after['value'], jobs_change_pct=f'{job_growth:.1f}',
real_output_change_pct=f'{output_growth:.1f}',
weekly_hours_2025=jobs[state, '2025', '02']['value'],
hourly_earnings_2025_usd=jobs[state, '2025', '03']['value'])
results.append(result)
print(f"{place['state']}: {before['value']} → {after['value']} thousand jobs "
f"({job_growth:+.1f}%); real output {output_growth:+.1f}%; "
f"2025: {result['weekly_hours_2025']} hours/week, ${result['hourly_earnings_2025_usd']}/hour")
Analysis of the output
Manufacturing, 2019–2025: payroll jobs and real output
North Carolina: 477.9 → 459.4 thousand jobs (-3.9%); real output +3.0%; 2025: 39.6 hours/week, $31.90/hour
Georgia: 406.1 → 427.0 thousand jobs (+5.1%); real output +17.4%; 2025: 40.1 hours/week, $31.11/hour
Virginia: 243.5 → 237.2 thousand jobs (-2.6%); real output +10.2%; 2025: 37.5 hours/week, $33.57/hour
North Carolina's manufacturing payroll falls from 477.9 thousand to 459.4 thousand jobs, a 3.9% decline, while real manufacturing output increases 3.0%. Georgia has growth in both measures: jobs increase 5.1% and real output 17.4%. Virginia's jobs decline 2.6% while real output rises 10.2%.
These are cumulative changes over six years, not annual rates. The comparison lets a regional business brief distinguish employment growth from output growth. It does not explain the causes of the divergence, establish productivity, or measure job quality. Payroll counts jobs, so someone holding two jobs can be counted twice.
The hours and pay figures add workforce context. North Carolina's 2025 manufacturing averages are 39.6 hours per week and $31.90 per hour. Earnings are nominal dollars and can change with workforce composition. Real GDP is price-adjusted value added; its dollar level should not be compared directly with nominal hourly earnings.
Using the full datasets
After purchasing the employment history, replace the annual sample with annual_observations.csv from the archive. Use series.csv, industries.csv and states.csv to choose actual state–industry series. coverage.csv documents which years have observations; a missing series or period is not a zero.
The six-row GDP excerpt still limits this exact comparison to the selected states and years. To extend the output side, use state_industry_gdp.csv from the separately purchased GDP product, change the filename in the code, and review the new industry match. Both paid products are fixed source editions, not a bundled subscription.
Monthly and annual comparisons
For monthly analysis use monthly_observations.csv. Select one measure and seasonal adjustment before comparing. Each monthly row includes exact prior-month and prior-year values and differences when the required prior period exists in the delivered window. These differences have the original units, not percent-change units. The annual table keeps BLS's published estimates rather than averaging monthly rates.
Industry totals overlap their components. Adjusted and unadjusted observations are alternative series. Hours and earnings cover fewer state–industry pairs than employment and begin in 2007; government employment has no hours/pay counterpart here. Preserve original correction flags rather than discarding flagged numeric values.
Source scope and classification
BLS's state CES series follow NAICS 2022; this BEA GDP edition follows 2017 NAICS. Broad manufacturing is reviewed here, but detailed boundaries and statistical concepts require care in other comparisons. Jobs and value added come from different measurement systems. Their ratio is not an official labor-productivity measure.
For county detail, see County Industry Workforce. For national payroll context, see Industry Employment, Hours & Earnings History. Those have different coverage; do not assume summing state estimates reproduces national CES. The manufacturing collection brings the related datasets together.
Sources and versions
Employment source: BLS CES State and Area, bulk files modified October 20, 2026 and retained November 20. Benchmark year 2025 and the delivered 1990–2025 observation window are separate from the source file date. Hours/pay begin in 2007. Source records through September 2026 are intentionally outside this edition.
GDP source: BEA annual state GDP, September 30, 2026 release. The companion sample provenance records the exact excerpt and publication hashes. Both histories are revised snapshots, not the figures first reported in each year.
The agencies provide the BLS originals and BEA originals free. ACD's purchase covers preparation, documentation and validation. Processing improvements and documented publisher error corrections to the 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.