Compare state hiring and quitting rates in Python

Look up monthly state hiring and quitting rates, with same-series annual changes in percentage points.

Compare hiring conditions across states

You are preparing a workforce brief and want to compare hiring and quitting rates across markets. This example selects seasonally adjusted December 2025 rates for North Carolina, California and Texas, along with each rate’s change from December 2024. It uses the Bureau of Labor Statistics Job Openings and Labor Turnover Survey (JOLTS).

The optional input.csv contains those three real state selections. The same codes appear in the states list in the Python code below. No observations are invented.

Download monthly_observations.csv into your working folder. It is a genuine subset of the paid product: all 1,440 monthly observations for these states in 2024–2025, retaining every measure, both seasonal-adjustment choices, levels and rates, and all 26 columns. The full $29 download covers all 50 states and DC from January 2001 through December 2025, with six companion tables. Inspect the full coverage, fields and limitations.

Code example

This 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.

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

# The optional input.csv contains the same selected states as this list.
states = [
    {"state_fips": "37", "label": "North Carolina"},
    {"state_fips": "06", "label": "California"},
    {"state_fips": "48", "label": "Texas"},
]
month = "2025-12"
path = Path("monthly_observations.csv")
wanted = {state["state_fips"] for state in states}
lookup = {}
with path.open(encoding="utf-8-sig", newline="") as handle:
    for row in csv.DictReader(handle):
        if (row["state_fips"] in wanted and row["month"] == month
                and row["seasonal"] == "S" and row["statistic"] == "R"
                and row["measure_code"] in {"HI", "QU"}):
            key = (row["state_fips"], row["measure_code"])
            if key in lookup:
                raise ValueError(f"Duplicate state/measure selection: {key}")
            lookup[key] = row

results = []
for state in states:
    hires = lookup.get((state["state_fips"], "HI"))
    quits = lookup.get((state["state_fips"], "QU"))
    result = {
        "state": state["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 states with your own selections or load state_fips from a CSV. Preserve leading zeros: California is 06. Change month to inspect another month. States or periods outside the sample require the full purchased file.

Analysis of the output

state: North Carolina | month: 2025-12 | hires_rate_pct: 3.2 | quits_rate_pct: 2.2 | hires_year_change_pp: -0.3 | quits_year_change_pp: -0.3 | status: matched
state: California | month: 2025-12 | hires_rate_pct: 3.2 | quits_rate_pct: 1.7 | hires_year_change_pp: 0.3 | quits_year_change_pp: -0.2 | status: matched
state: Texas | month: 2025-12 | hires_rate_pct: 3.5 | quits_rate_pct: 2.2 | hires_year_change_pp: 0.2 | quits_year_change_pp: -0.1 | status: matched

North Carolina’s hiring rate is 3.2% and its quitting rate is 2.2% in December 2025. Both are 0.3 percentage points below their December 2024 values. California has a 3.2% hiring rate and a 1.7% quitting rate; Texas has rates of 3.5% and 2.2%. These estimates add a consistent state-level view of hiring and employee departures to a workforce brief.

Hiring and quitting rates divide the month’s events by employment. A change from 3.5% to 3.2% is a decline of 0.3 percentage points, not a 0.3% decline. Hires and separations count events rather than unique people. State estimates are modeled; the displayed differences do not establish statistical significance or explain why conditions changed.

The code keeps an unavailable selection as selection_not_found rather than dropping the requested state. It also rejects a repeated state/measure key within the selected month, adjustment and statistic. The full table’s unique key includes all five dimensions, so filtering only by state and month would return multiple legitimate observations.

Add other labor-market measures

Workplace employment and wages, resident unemployment history and occupational pay answer related questions with different populations and geographic scope. JOLTS does not provide county or state-industry estimates, and its state rates cannot be allocated to those groups.

Choose business and labor data for your question →

Using the full dataset

Extract the purchased ZIP and replace the sample with its complete monthly_observations.csv. The code runs unchanged against 306,000 monthly observations. Choose among job openings (JO), hires (HI), quits (QU), layoffs and discharges (LD) and total separations (TS). Select L for levels in thousands, or R for rates in percent; use U for unadjusted estimates. Keep those choices separate.

Monthly job openings describe a stock on the last business day; hires and separations describe events during the month. Quits and layoffs are components of total separations. Hires minus separations do not necessarily reproduce employment change in another BLS program.

annual_observations.csv retains 12,750 published unadjusted annual estimates. Annual job-opening levels are averages, while hiring and separation levels are totals. Annual rates use BLS ratio definitions, not sums or ordinary averages of monthly rates. baseline_observations.csv keeps December 2000 separately, supporting the first monthly comparison and December 2001’s year comparison. Other 2001 year comparisons remain unavailable.

series.csv decodes 1,020 series, states.csv supplies 51 state/DC codes and labels, coverage.csv summarizes availability, and source_row_status.csv accounts for every bulk input row. The dictionaries describe units, keys and field definitions.

Sources and versions

Source: BLS JOLTS bulk files, captured October 31, 2026, with September 29 file modification dates. The retained state annual release is dated July 22, 2026 and covers 2025. The source state series end in December 2025. Observation periods, source publication and ACD preparation are separate dates.

JOLTS begins in December 2000. January 2001–December 2025 supplies complete calendar years, with that first month retained separately as a baseline. This is one revised snapshot, not original-as-published monthly vintages. BLS now publishes state JOLTS annually while retaining monthly observations. The FAQ and methodology explain the measures and state modeling.

Your one-time purchase includes processing improvements and 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 October 31, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.