Compare employment projections across industries in Python

Compare truck-driver employment growth and the two different workforce shares across trucking, durable wholesale and warehousing using genuine BLS records.

Compare truck-driver employment across industries

You are researching which industries could contribute to future demand for heavy and tractor-trailer truck drivers. This dataset lets you compare projected job growth with the size of each industry's existing truck-driver workforce, then distinguish two useful shares: how much of the occupation works in an industry, and how much of that industry's workforce is in the occupation.

The optional input.csv contains three genuine industry–occupation selections: truck transportation, a BLS durable-wholesale grouping, and warehousing. The same selections appear in the Python list below. They are inputs to the comparison; the employment figures and projections are published BLS data.

industry_occupation_projections.csv is a genuine subset of the paid main table. It includes every published detailed-industry relationship for heavy truck drivers, with all 23 fields unchanged. Download it into your working folder. The full $29 edition supplies 34,474 detailed pairs, separate summary rows, both classification directories and source notes. Review the full dataset and fields.

Code example

This standard-library example runs in a notebook, IPython or a Python script. It selects three industry–occupation pairs and prints baseline employment, projected employment, decade growth and the two workforce shares.

Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.

Python 3.10+ · Jupyter, IPython or a script
import csv
from decimal import Decimal
from pathlib import Path

# Real industry selections for heavy and tractor-trailer truck drivers.
# The same selections appear in example_input.csv.
selections = [
    {"occupation_code": "53-3032", "industry_code": "484000"},
    {"occupation_code": "53-3032", "industry_code": "4230A1"},
    {"occupation_code": "53-3032", "industry_code": "493000"},
]
reference_path = Path("industry_occupation_projections.csv")

wanted = {(x["occupation_code"], x["industry_code"]) for x in selections}
reference = {}
with reference_path.open(newline="", encoding="utf-8-sig") as stream:
    for row in csv.DictReader(stream):
        key = row["occupation_code"], row["industry_code"]
        if key not in wanted:
            continue
        if key in reference:
            raise ValueError(f"Duplicate industry–occupation pair: {key}")
        if row["occupation_type"] != "Line item" or row["industry_type"] != "Line item":
            raise ValueError("Use the detailed table; summary rows overlap.")
        reference[key] = row

results = []
for selection in selections:
    key = selection["occupation_code"], selection["industry_code"]
    if key not in reference:
        raise ValueError(f"Pair not published in this file: {key}. Do not assume zero.")
    row = reference[key]
    if row["value_status"] != "reported":
        raise ValueError(f"Inspect source availability for {key}.")
    result = {field: row[field] for field in (
        "occupation_code", "industry_code", "industry_title", "naics_2022_coverage",
        "employment_base_jobs", "employment_projected_jobs", "employment_change_jobs",
        "employment_change_pct", "occupation_industry_share_base_pct",
        "industry_staffing_share_base_pct")}
    results.append(result)
    print(f"{row['industry_code']} | {row['industry_title']}")
    print(f"  Truck-driver jobs: {Decimal(row['employment_base_jobs']):,.0f} in 2025 → "
          f"{Decimal(row['employment_projected_jobs']):,.0f} projected in 2035")
    print(f"  Decade change: {Decimal(row['employment_change_jobs']):+,.0f} jobs "
          f"({Decimal(row['employment_change_pct']):+.1f}%)")
    print(f"  Share of all truck-driver jobs: {row['occupation_industry_share_base_pct']}% | "
          f"Share of this industry's jobs: {row['industry_staffing_share_base_pct']}%")

Change reference_path if your CSV is in another folder. Replace the selections list with other code pairs, or load those two columns from your own CSV. Other occupations require the full purchased file. Preserve the hyphen in occupation codes and letters in industry codes.

Analysis of the output

484000 | Truck transportation
  Truck-driver jobs: 890,300 in 2025 → 912,600 projected in 2035
  Decade change: +22,300 jobs (+2.5%)
  Share of all truck-driver jobs: 40.1% | Share of this industry's jobs: 60.1%
4230A1 | Merchant wholesalers, durable goods (4232,3,5,6,7,9)
  Truck-driver jobs: 64,000 in 2025 → 66,600 projected in 2035
  Decade change: +2,600 jobs (+4.0%)
  Share of all truck-driver jobs: 2.9% | Share of this industry's jobs: 4.2%
493000 | Warehousing and storage
  Truck-driver jobs: 88,800 in 2025 → 98,300 projected in 2035
  Decade change: +9,500 jobs (+10.7%)
  Share of all truck-driver jobs: 4% | Share of this industry's jobs: 4.8%

Truck transportation has by far the largest truck-driver workforce among these selections: 890,300 jobs in 2025, projected to reach 912,600 in 2035. Its 2.5% growth is slower than warehousing's 10.7%, yet its projected gain of 22,300 jobs exceeds warehousing's 9,500. Percentage growth and the number of additional jobs answer different planning questions.

The shares put those counts in context. Truck transportation employs 40.1% of all heavy truck-driver jobs, while truck drivers account for 60.1% of that industry's jobs. In warehousing, the corresponding shares are 4.0% and 4.8%. The first describes where truck drivers work; the second describes an industry's staffing mix. Neither is a share of projected openings.

4230A1 is a BLS grouping covering selected durable-goods wholesalers. Its 4.0% projected growth applies to that named group, not all wholesale trade. The product preserves the publisher's exact coverage expression and supplies a directory; treating every matrix industry code as a standard six-digit NAICS code would lose that distinction.

Employment change and source coverage

These are national 2025 baseline estimates and projected 2035 endpoints. Net employment change over a decade is different from hiring or occupational openings, which also reflect workers leaving jobs or occupations. For whole-occupation projected openings and training, use the occupational outlook; for observed industry staffing and pay, use the industry wage reference.

BLS excludes some industry–occupation cells for confidentiality, statistical quality or fewer than 50 jobs. An absent pair is not a measured zero. The example stops if a requested pair is absent so the analyst can review it. Published totals can include excluded cells and will not necessarily equal the sum of available detail. Counts and percentages are also independently rounded.

Using the full dataset

Extract the purchased ZIP and point reference_path at industry_occupation_projections.csv. Its key is occupation_code plus industry_code. Both classifications are BLS line items in that table. The main table represents 830 occupations and 291 industries. Choose an occupation to compare its industries, or choose an industry to compare its staffing and projected changes. A code appearing in a directory does not guarantee a published detailed pair.

matrix_summaries.csv holds 79,424 additional published pairs where at least one dimension is a summary. This includes all-industry occupation totals and all-occupation industry totals. Use those published marginals when you need denominators. Do not add summary rows to their children or mix multiple overlapping summary levels.

occupation_directory.csv and industry_directory.csv supply labels, source levels and derived parent links. The industry directory also preserves 2022 NAICS coverage expressions, including grouped codes and ranges. Original levels remain unchanged, including a skipped level at industry 623100; parent_level_difference makes that visible. No unsupported NAICS allocation weights are provided.

The six tables come with field dictionaries, original notes, source-row accounting, source and processing identities, checksums and this example. Employment counts have been converted from thousands to jobs, retaining source rounding; they count jobs rather than unique people. Self-employment has its own matrix category. Do not allocate national projections to counties or infer employer-specific forecasts.

Browse business and labor datasets or compare labor-market data sources.

Sources and versions

Source: U.S. Bureau of Labor Statistics, National Employment Matrix and industry/occupation directories. The definitions and projection methods explain the employment universe and construction.

The source edition was published August 27, 2026 and captured by ACD November 1, 2026 UTC. Its baseline is 2025; its projection endpoint is 2035. Those dates are distinct from our preparation date. There are no annual observations for intervening years.

The $29 purchase covers this fixed edition, with processing improvements and documented publisher error corrections included. Future source editions may be sold separately. Original BLS data remain 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.