Compare industry staffing and occupational pay in Python
Compare employment size, staffing shares and median hourly pay for warehouse and courier occupations using genuine BLS samples.
Compare staffing and pay in warehousing and courier services
You are researching the workforce used to move goods. Industry employment totals tell you the size of a sector; this reference adds the occupations within it and their pay. The example compares freight and material-moving laborers in warehousing and courier services, then adds industrial truck and tractor operators in warehousing.
The optional input.csv contains three real industry/occupation selections. The same choices appear in the selections list in the Python code below. These are analysis inputs; all employment and wage observations come from BLS.
industry_occupations.csv is a genuine subset of the paid table: all published occupation levels for the two selected private industries in the source’s 4-digit breakdown, with every field unchanged. Download this sample into your working folder. The full $29 edition includes 170,352 industry/occupation records, separate ownership benchmarks and four reference/audit tables. Review the full dataset and fields.
Code example
The code runs directly in Jupyter, IPython or a Python script using the standard library. It selects detailed occupations, the source’s 4-digit industry breakdown and private ownership. It uses the published staffing percentage rather than calculating a share from incomplete occupational totals.
Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.
import csv
from pathlib import Path
DATA_DIR = Path('.')
# These are real analysis selections, also supplied in input.csv.
selections = [
{'naics_code': '493100', 'occupation_code': '53-7062'},
{'naics_code': '492100', 'occupation_code': '53-7062'},
{'naics_code': '493100', 'occupation_code': '53-7051'},
]
requested = {(s['naics_code'], s['occupation_code']) for s in selections}
matched = {}
with (DATA_DIR / 'industry_occupations.csv').open(newline='', encoding='utf-8') as stream:
for row in csv.DictReader(stream):
key = (row['naics_code'], row['occupation_code'])
if (key in requested and row['industry_group'] == '4-digit'
and row['ownership_code'] == '5' and row['occupation_level'] == 'detailed'):
if key in matched:
raise ValueError(f'Duplicate industry/occupation: {key}')
matched[key] = row
def display(row, field, decimals):
if row[field + '_status'] != 'reported':
return row[field + '_status']
return f"{float(row[field]):,.{decimals}f}"
results = []
for selection in selections:
key = (selection['naics_code'], selection['occupation_code'])
if key not in matched:
raise ValueError(f'No published estimate for {key}; absence is not zero jobs.')
row = matched[key]
result = {'industry': row['industry_title'], 'occupation': row['occupation_title'],
'jobs': display(row, 'employment', 0),
'industry_employment_pct': display(row, 'occupation_pct_of_industry', 2),
'median_hourly_usd': display(row, 'hourly_median', 2)}
results.append(result)
print(f"{result['industry']} | {result['occupation']} | {result['jobs']} jobs | "
f"{result['industry_employment_pct']}% of industry jobs | "
f"median hourly USD {result['median_hourly_usd']}")
Change DATA_DIR if the file is elsewhere. Replace the real codes in selections with your own selections, or read those columns from your CSV. Other industries require the full purchased file. Keep codes as text and review the industry and ownership references before changing the filters.
Analysis of the output
Warehousing and Storage | Laborers and Freight, Stock, and Material Movers, Hand | 433,060 jobs | 22.05% of industry jobs | median hourly USD 22.06
Couriers and Express Delivery Services | Laborers and Freight, Stock, and Material Movers, Hand | 334,430 jobs | 36.14% of industry jobs | median hourly USD 21.47
Warehousing and Storage | Industrial Truck and Tractor Operators | 286,750 jobs | 14.60% of industry jobs | median hourly USD 23.16
Warehousing employs an estimated 433,060 freight/material-moving laborers, versus 334,430 in courier services. The role represents a larger share of courier employment, however: 36.14%, compared with 22.05% in warehousing. Employment size and staffing share answer different questions.
Median hourly wages for this occupation are $22.06 in warehousing and $21.47 in courier services. Warehouse industrial truck and tractor operators have a higher reported median, $23.16, and account for 14.60% of warehouse jobs. These comparisons help describe staffing mix and pay benchmarks; they do not establish a statistically significant wage difference or an employer’s current hiring needs.
The estimates cover full- and part-time wage/salary jobs nationally. They do not describe a particular city or company. Median wages exclude overtime and benefits. Suppressed, unavailable or threshold values print their status instead of an invented number. The mean-wage precision measure in the full file is not a confidence interval for the median.
Choose the right comparison
Use this product for occupations within industries. Our occupational wage reference by location compares occupations across regional labor markets, combining industries. County industry hiring and earnings describes quarterly local job flows and monthly earnings with different populations. A national staffing share cannot simply allocate local industry jobs into occupations.
Using the full dataset
Extract the purchased ZIP and point DATA_DIR to its folder. The main table has one industry code, source industry breakdown, ownership group, occupation code and occupation level per row. It includes sector, 3-digit, 4-digit and selected 5/6-digit industries, plus school/hospital ownership detail. Different levels overlap and must not be added.
industries.csv lists 444 published industry/breakdown/ownership combinations. These are not 444 distinct, disjoint industries. BLS’s 4-digit breakdown includes some 3-digit aggregates and alphanumeric combinations such as 4450A1. Preserve those codes and labels. occupations.csv lists occupation/level labels; ownerships.csv explains the nine overlapping ownership groups. ownership_benchmarks.csv keeps 5,654 cross-industry ownership estimates separate from industry detail.
The two percentage fields are also distinct: occupation_pct_of_industry describes jobs, while reporting_establishments_pct describes establishments reporting the occupation in that source cell. Neither implies a vacancy rate. Unpublished occupational estimates can leave detailed shares below 100%. Missing combinations and unavailable cells remain explicit.
Dictionaries, source-row accounting, quality checks, source and processing identities, checksums and this example accompany the tables. The source does not cover self-employed workers, private households or most agriculture. These national estimates do not include state or county occupation-by-industry detail.
Sources and versions
Source: U.S. Bureau of Labor Statistics, Occupational Employment and Wage Statistics. The May 2025 technical notes explain coverage, wages and estimation. BLS uses the 2018 SOC framework and 2022 NAICS, including specific aggregations.
May 2025 is the estimate reference period. BLS published it May 15, 2026; ACD captured the files November 1, 2026 UTC. Six survey panels from November 2022 through May 2025 contribute to this single modeled reference period. It is not a history of six separate periods.
The $29 purchase covers this fixed edition, including ACD processing improvements and documented publisher error corrections. New source editions may be sold separately. Original BLS data are free; ACD sells preparation, validation, documentation and delivery. Read the preparation record.
Example checked November 1, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.