Find college program completions in Python

Find North Carolina institutions reporting supply-chain bachelor awards, with original IPEDS counts and reporting flags.

Find institutions reporting awards in a field

You are researching supply-chain training in North Carolina and want to identify institutions awarding bachelor's degrees in that field. IPEDS records the program as CIP 52.0203, Logistics, Materials, and Supply Chain Management, and bachelor's awards as level 5. The completions table supplies the counts; the institution table supplies the reporting context.

The optional input.csv contains that genuine state, program and award-level selection. The same selection appears in the selections list in the Python code below. The institutions and award counts are published aggregate records; no student data or invented inventory is involved.

program_completions.csv is a genuine subset of the paid table containing all North Carolina records for this program, across award levels and first/second majors. institutions.csv contains the corresponding institution and reporting records. Save both files in your working folder. The full $29 reference contains 292,858 program records across 5,811 institutions, plus separate totals, completer counts, category labels and source accounting.

Code example

This example uses Python's standard library and runs in a notebook, IPython or a script. It selects first-major bachelor's records, joins institution reporting details on unitid, and prints award counts with their original item-status flags.

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

data_dir = Path('.')
# The same genuine selection is supplied in example_input.csv (input.csv online).
selections = [{'state': 'NC', 'cip2020_code': '52.0203', 'award_level': '5'}]

with (data_dir / 'institutions.csv').open(encoding='utf-8', newline='') as f:
    institutions = {row['unitid']: row for row in csv.DictReader(f)}

results = []
with (data_dir / 'program_completions.csv').open(encoding='utf-8', newline='') as f:
    for row in csv.DictReader(f):
        if row['major_number'] != '1':
            continue
        if not any(all(row[field] == value for field, value in choice.items())
                   for choice in selections):
            continue
        institution = institutions[row['unitid']]
        results.append({
            'unitid': row['unitid'],
            'institution': row['institution_name'],
            'city': row['city'],
            'awards': row['total_awards'],
            'item_status': row['total_awards_flag'],
            'reporting_scope': institution['parent_child_status_label'],
        })

results.sort(key=lambda row: (-int(row['awards']), row['unitid']))
print('NC supply-chain programs: first-major bachelor awards, July 2024–June 2025')
for row in results:
    print(f"{row['unitid']} | {row['institution']} | {row['city']} | "
          f"{row['awards']} awards | {row['item_status']}")
print('R = reported. Zero is retained; it does not establish that a program closed.')

Set data_dir to the folder holding the two CSVs. The results list retains the institution identifier and reporting scope for further work. With the full download, change selections to another state, CIP program and award level, or load those fields from your own CSV. Keep identifiers as text, including the decimal in the CIP code.

Analysis of the output

NC supply-chain programs: first-major bachelor awards, July 2024–June 2025
197869 | Appalachian State University | Boone | 79 awards | R
198464 | East Carolina University | Greenville | 37 awards | R
199209 | North Carolina Wesleyan University | Rocky Mount | 6 awards | R
197984 | Belmont Abbey College | Belmont | 5 awards | R
198516 | Elon University | Elon | 4 awards | R
198543 | Fayetteville State University | Fayetteville | 0 awards | R
R = reported. Zero is retained; it does not establish that a program closed.

Appalachian State reports 79 first-major bachelor's awards in this program, followed by East Carolina with 37. The other listed institutions report smaller counts, including a reported zero at Fayetteville State. These records give you a starting list of institutions to research; the city and UNITID let you identify them consistently.

The R flag means the value was reported. In the full data, other flags distinguish implied zeros, adjusted values and imputation. A zero remains a zero: it does not tell you that a program closed. An institution absent from this program selection is not automatically an institution with zero awards.

We select first majors because a second major describes another field attached to an award, not an additional degree. Awards are also different from students: someone can earn more than one credential. The separate institution_completers.csv counts students at the institution level; it does not supply unique graduates for each program or nationally deduplicate people across institutions.

Adding occupational context

To research careers related to this field, use 52.0203 with the separate CIP-to-SOC crosswalk. Its supply-chain example identifies related occupations. You can then review compatible wage or outlook records through the education and careers collection.

Those links describe relevant instructional content, not where graduates found jobs. They contain no probabilities or weights for distributing these awards among occupations. Comparing awards directly with projected job openings would also mix different populations, locations and periods.

Using the full dataset

Extract the purchased ZIP and point data_dir to its CSVs. The main key is unitid + cip2020_code + major_number + award_level. Filter the credential and major before aggregating, and retain flags beside counts. Original CIP 99 institution totals are in institution_totals.csv; do not add them to program detail.

The institution directory includes response, imputation and parent/child reporting flags. Its location identifies a reporting institution, not student residence or every campus. The retained county code uses the publisher's TIGER 2024 geography; the original code remains beside the derived, zero-padded FIPS. Review reporting scope before mapping or combining local data.

Six CSVs, field dictionaries, the four original NCES spreadsheet dictionaries, source-row references, quality checks and provenance are included. Coverage is explicit: 53 institutions with program records lack an institution-completer row, and three response-only IDs lack directory records. Eight graduate unknown-sex fields are blank despite an imputation flag; they remain blank and documented. The supplemental unknown-sex measures overlap the male/female totals and must not be added to them.

Sources and versions

The awards cover July 1, 2024–June 30, 2025. The directory describes the 2025–26 IPEDS collection. NCES released these fall provisional files on July 28, 2026; ACD retained them on November 1, 2026 UTC. Observation, collection, publication and capture dates are distinct.

Sources are the NCES IPEDS data files C2025_A, C2025_B, HD2025 and FLAGS2025, their original dictionaries, the release memorandum and Completions instructions. The directory includes US territories and freely associated states. This is aggregate education data, not student microdata or graduate employment outcomes.

The original C2025_A dictionary has two text discrepancies: its CIP description refers to 2021, although the variable label and instructions specify CIP 2020; its female-total description says “Males,” while the variable label correctly says “Grand total females.” Our prepared definitions clarify these and retain the original text alongside the unchanged source dictionaries. No values are altered.

ACD separates detail from totals, joins exact institution IDs, attaches original labels and preserves every item flag. Independent acceptance checks all six prepared tables directly against the original files and reconciles the program subtotals. Raw sources, staging, preparation and publication have separate immutable identities; offline replay reproduces the same archive.

Original government downloads are free. The $29 purchase covers this prepared provisional edition. Processing improvements and documented publisher error corrections to purchased scope are included; new source editions may be sold separately. No agency endorsement is implied.

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.