Compare occupational openings, growth and training in Python

Compare projected openings, net growth, baseline pay and entry preparation for truck drivers, stockers and packers using genuine BLS records.

Compare the outlook for three logistics occupations

You are comparing occupations for a workforce or training-program analysis. Projected growth tells you whether an occupation is expanding; annual openings also reflect workers leaving the occupation. This reference brings both measures together with baseline pay and typical entry preparation.

The optional input.csv contains three real occupation selections: heavy truck drivers, stockers and order fillers, and hand packers. The same choices appear in the selections list in the Python code below. These are analysis inputs; all observations and projections come from BLS.

occupational_outlook.csv is a genuine subset of the paid table, containing those three occupations with all 49 fields unchanged. Download it into your working folder. The full $29 edition includes 831 detailed occupations, separate summary groups, the occupation hierarchy and source notes. Review the full dataset and fields.

Code example

The code runs directly in Jupyter, IPython or a Python script using the standard library. It looks up each occupation, checks availability and prints projected annual openings, decade growth, baseline pay and typical entry education.

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 occupation selections, also provided in input.csv.
selections = [
    {"occupation_code": "53-3032"},  # Heavy and tractor-trailer truck drivers
    {"occupation_code": "53-7065"},  # Stockers and order fillers
    {"occupation_code": "53-7064"},  # Packers and packagers, hand
]
reference_path = Path("occupational_outlook.csv")

with reference_path.open(newline="", encoding="utf-8-sig") as stream:
    reference = {}
    for row in csv.DictReader(stream):
        key = row["occupation_code"]
        if key in reference:
            raise ValueError(f"Duplicate occupation code: {key}")
        if row["occupation_type"] != "Line item":
            raise ValueError("Use occupational_outlook.csv; summary groups overlap.")
        reference[key] = row

results = []
for selection in selections:
    code = selection["occupation_code"]
    if code not in reference:
        raise ValueError(f"Occupation absent from this reference: {code}")
    row = reference[code]
    numeric_fields = ("annual_openings_jobs", "annual_separations_jobs", "employment_change_jobs", "employment_change_pct", "median_annual_wage_usd")
    if any(row[name + "_status"] != "reported" for name in numeric_fields):
        raise ValueError(f"A comparison measure is unavailable for {code}; inspect its status.")
    if row["training_fields_status"] != "reported":
        raise ValueError(f"Training information is unavailable for {code}.")
    result = {"occupation_code": code, "occupation_title": row["occupation_title"],
        "annual_openings_jobs": row["annual_openings_jobs"],
        "annual_net_growth_jobs": row["annual_net_growth_jobs"],
        "annual_separations_jobs": row["annual_separations_jobs"],
        "decade_growth_pct": row["employment_change_pct"],
        "median_annual_wage_usd": row["median_annual_wage_usd"],
        "typical_entry_education": row["typical_entry_education"]}
    results.append(result)
    print(f"{code} | {row['occupation_title']}")
    print(f"  Annual openings: {Decimal(row['annual_openings_jobs']):,.0f} | "
          f"Decade growth: {Decimal(row['employment_change_pct']):.1f}% | "
          f"2025 median wage: ${Decimal(row['median_annual_wage_usd']):,.0f}")
    print(f"  Annual net growth: {Decimal(row['annual_net_growth_jobs']):,.0f} | "
          f"Annual separations: {Decimal(row['annual_separations_jobs']):,.0f}")
    print(f"  Typical entry education: {row['typical_entry_education']}")

Change reference_path if the sample is in another folder. Replace the occupation codes in selections with your own choices, or load that column from your CSV. Other occupations require the full purchased file. Keep the hyphens and read codes as text.

Analysis of the output

53-3032 | Heavy and tractor-trailer truck drivers
  Annual openings: 214,500 | Decade growth: 3.8% | 2025 median wage: $58,640
  Annual net growth: 8,380 | Annual separations: 206,100
  Typical entry education: Postsecondary nondegree award
53-7065 | Stockers and order fillers
  Annual openings: 430,700 | Decade growth: 8.9% | 2025 median wage: $37,330
  Annual net growth: 25,070 | Annual separations: 405,700
  Typical entry education: No formal educational credential
53-7064 | Packers and packagers, hand
  Annual openings: 61,800 | Decade growth: -5.0% | 2025 median wage: $36,280
  Annual net growth: -2,750 | Annual separations: 64,500
  Typical entry education: No formal educational credential

Stockers and order fillers have the most projected annual openings of these three occupations: 430,700, alongside 8.9% employment growth over the decade. Truck drivers have fewer annual openings, 214,500, and slower projected growth, 3.8%, but a higher 2025 median wage: $58,640 versus $37,330. These measures support different comparisons; more openings do not imply higher pay.

Hand packers illustrate why growth alone is incomplete. Employment is projected to fall 5.0%, yet the occupation has 61,800 annual openings. Projected annual separations of 64,500 exceed the average net decline of 2,750 jobs per year. BLS rounds these quantities independently, so they do not balance exactly. The full table retains the rounding difference explicitly.

Truck drivers typically need a postsecondary nondegree award, while BLS assigns no formal educational credential to the other two occupations. These are typical entry categories, not universal employer requirements or a statement that no training is needed. The full table also supplies related work experience and on-the-job training.

Use the measures in the right time frame

Employment growth covers 2025–2035. Openings, labor-force exits and occupational transfers are annual averages over that horizon, not observations for a particular future year. Wages are nominal 2025 medians, not entry salaries or projected 2035 pay. Employment includes self-employed and other jobs outside the wage measure’s nonfarm wage/salary population.

Occupational separations include labor-force exits and transfers to another occupation. They exclude changing employers within the same occupation, and exits are not all retirements. These projections describe national occupational opportunities; they do not measure today’s job advertisements or an individual employer’s hiring plans.

For observed regional pay, use the occupational wage reference. For occupations within industries, use industry staffing and pay. For observed state vacancies and turnover, use state JOLTS. Browse business and labor datasets →

Using the full dataset

Extract the purchased ZIP and point reference_path to its occupational_outlook.csv. The main table contains one detailed occupation per row. It supplies baseline and projected employment, published change, annual openings, exits and transfers, their rates, self-employment share, median wages, typical preparation and source coordinates.

occupation_summaries.csv keeps 281 overlapping summary groups separate. occupation_hierarchy.csv connects all 1,112 detailed and summary codes using the source directory’s levels. Use that hierarchy rather than guessing a level from the code suffix. Review BLS-specific occupation combinations before joining other SOC/OEWS files; a shared classification framework does not ensure identical granularity.

Counts are converted from source thousands into jobs. Unavailable numeric values remain blank with a status, and genuine zero remains zero. The code stops if a selected measure is unavailable so you can decide how to handle it. A reported training category of None is different from missing data. Source notes, a complete row audit, dictionaries, quality checks, source and processing identities, checksums and this example accompany the analytical tables.

Do not add summary groups to their detailed children, divide separation counts by baseline employment to reproduce BLS model rates, or apply national projections to county jobs. This edition does not contain annual estimates for intervening years, local forecasts, an industry matrix or skill/AI-exposure measures.

Sources and versions

Source: U.S. Bureau of Labor Statistics, Employment Projections occupational tables, Tables 1.2 and 1.10 and the National Employment Matrix occupation directory. The definitions and separations methodology explain the measures and populations.

2025 is the employment and wage baseline; 2035 is the projection endpoint. BLS published this edition August 27, 2026. ACD captured the source files November 1, 2026 UTC. These dates distinguish the data’s horizon, the publisher’s release and our preparation.

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.