Compare industry hiring and quitting rates in Python
Compare national industry hiring and quitting rates, with same-series annual changes in percentage points.
Compare hiring and quitting across industries
You are preparing a workforce brief and want to compare hiring and employee departures across industries. This example looks up December 2025 hiring and quitting rates for manufacturing, health care and social assistance, and accommodation and food services. It also shows how each rate changed from December 2024, using national estimates from the Bureau of Labor Statistics Job Openings and Labor Turnover Survey (JOLTS).
The optional input.csv contains those three real industry selections. The same codes appear in the industries list in the Python code below. No observations are invented.
Download monthly_observations.csv into your working folder. This is a genuine subset of the paid table: all 1,728 monthly observations for the selected industries in 2024–2025, with every measure, both seasonal-adjustment choices, levels and rates, and all 27 columns. The full $29 download covers 28 national groups from January 2001 through December 2025, with six companion tables. Inspect the full coverage and fields.
Code example
The example uses Python’s standard library and runs in a notebook cell, IPython or a script. It selects S for seasonally adjusted estimates, R for rates, HI for hires and QU for quits.
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
# The optional input.csv contains the same selected industries as this list.
industries = [
{"industry_code": "300000", "label": "Manufacturing"},
{"industry_code": "620000", "label": "Health care and social assistance"},
{"industry_code": "720000", "label": "Accommodation and food services"},
]
month = "2025-12"
path = Path("monthly_observations.csv")
wanted = {industry["industry_code"] for industry in industries}
lookup = {}
with path.open(encoding="utf-8-sig", newline="") as handle:
for row in csv.DictReader(handle):
if (row["industry_code"] in wanted and row["month"] == month
and row["seasonal"] == "S" and row["statistic"] == "R"
and row["measure_code"] in {"HI", "QU"}):
key = (row["industry_code"], row["measure_code"])
if key in lookup:
raise ValueError(f"Duplicate industry/measure selection: {key}")
lookup[key] = row
results = []
for industry in industries:
hires = lookup.get((industry["industry_code"], "HI"))
quits = lookup.get((industry["industry_code"], "QU"))
result = {
"industry": industry["label"], "month": month,
"hires_rate_pct": hires["value"] if hires else "",
"quits_rate_pct": quits["value"] if quits else "",
"hires_year_change_pp": hires["year_change"] if hires else "",
"quits_year_change_pp": quits["year_change"] if quits else "",
"status": "matched" if hires and quits else "selection_not_found",
}
results.append(result)
print(" | ".join(f"{name}: {value}" for name, value in result.items()))
Replace industries with your own selections or load industry_code from a CSV. Use the supplied industry directory: these six-character JOLTS group codes are not a general-purpose NAICS crosswalk. Preserve them as text, including 000000 for Total nonfarm. Change month to inspect another period; selections outside the sample require the full purchased file.
Analysis of the output
industry: Manufacturing | month: 2025-12 | hires_rate_pct: 2.2 | quits_rate_pct: 1.4 | hires_year_change_pp: -0.2 | quits_year_change_pp: -0.1 | status: matched
industry: Health care and social assistance | month: 2025-12 | hires_rate_pct: 3.2 | quits_rate_pct: 2.0 | hires_year_change_pp: 0.0 | quits_year_change_pp: 0.0 | status: matched
industry: Accommodation and food services | month: 2025-12 | hires_rate_pct: 6.2 | quits_rate_pct: 4.7 | hires_year_change_pp: 1.0 | quits_year_change_pp: 1.1 | status: matched
Accommodation and food services has a 6.2% hiring rate and a 4.7% quitting rate in December 2025, compared with 2.2% and 1.4% in manufacturing. Health care and social assistance sits between them at 3.2% and 2.0%. This gives a workforce brief a consistent view of how frequently hiring and voluntary departures occur relative to employment in each industry.
The accommodation and food services rates are 1.0 and 1.1 percentage points above December 2024, respectively. Manufacturing is down 0.2 and 0.1 points; the health care group is unchanged at the published precision. These are arithmetic comparisons of survey estimates, not tests of statistical significance or explanations of the causes. Hires and separations count events rather than unique people.
The code retains an unavailable selection as selection_not_found and rejects a repeated industry/measure key within the selected month, adjustment and statistic. The full table’s unique key includes all five dimensions; selecting only industry and month returns several legitimate observations.
Choose the right labor-market comparison
This product compares national industries. Use State JOLTS for total-nonfarm hiring and turnover across states, industry occupational wages for staffing and pay, or county industry workforce history for local private-employment hiring and earnings. Their populations and definitions differ; combining the two JOLTS products does not create state-by-industry estimates.
Using the full dataset
Extract the purchased ZIP and replace the sample with its complete monthly_observations.csv. The code runs unchanged against 201,600 observations. Choose job openings (JO), hires (HI), quits (QU), layoffs and discharges (LD), other separations (OS) or total separations (TS). Select L for levels in thousands, R for rates in percent, and U for unadjusted estimates.
The 28 groups include overlapping totals and subgroups. For example, manufacturing includes durable and nondurable goods, while total private includes manufacturing. The industry_display_level field and industries.csv preserve that hierarchy. Compare the groups relevant to your question; do not sum the entire directory.
Monthly openings are a stock on the last business day; hires and separations are events during the month. Quits, layoffs and other separations are components of total separations. Opening rates use employment plus openings as their denominator; the other rates use employment.
annual_observations.csv retains 8,400 published unadjusted annual estimates. Opening levels are annual averages, while hiring and separation levels are annual totals. Annual rates follow BLS ratio definitions, not ordinary averages or sums of monthly rates. baseline_observations.csv retains 672 December 2000 observations separately, supporting January 2001’s month comparison and December 2001’s year comparison; other 2001 year comparisons are unavailable.
series.csv identifies 672 source series, industries.csv supplies 28 codes and labels, coverage.csv summarizes observations, and source_row_status.csv accounts for every bulk input row. Field dictionaries describe keys, units and interpretation.
Sources and versions
Source: BLS JOLTS bulk files retained October 31, 2026, with September 29 file modification dates. This edition intentionally covers complete calendar years 2001–2025. The source begins in December 2000 and includes partial 2026 observations; the former is a separate baseline and the latter are excluded. It is one revised historical snapshot, not original-as-published monthly vintages or a promise of the latest online file.
The national technical note, calculation methods and survey history were reviewed November 4. The technical note identifies NAICS 2022 beginning January 2023. The product preserves BLS’s published series; it does not independently harmonize historical industry definitions.
Your one-time purchase includes processing improvements and documented publisher error corrections to this edition. New periods or genuinely new source editions may be sold separately; routine benchmarking is not automatically an error correction. There is no membership or automatic-refresh promise. Original government data are free; ACD sells preparation, documentation, validation and delivery. Read the preparation record.
Example checked November 4, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.