Compare college acceptance and enrollment yield in Python

Compare applicants, acceptance and enrollment yield across a college shortlist, with test-policy and SAT/ACT usage context.

Compare admissions patterns at three universities

You are reviewing Appalachian State, UNC Chapel Hill and NC State for a higher-education market study. You want to compare the share of applicants admitted, the share of admitted students who enrolled, and how extensively test scores were used. These measures describe different steps in an institution’s admissions process.

The optional input.csv contains the universities’ genuine IPEDS UNITID identifiers. The identical choices appear in the selections list in the Python code below. No institutions or observations are invented.

admissions.csv and test_scores.csv are three-institution subsets of the purchased tables, with every column unchanged. Save both in your working folder. The full $29 reference covers 1,956 institutions and includes admission considerations, published rate benchmarks, a broader institution directory, definitions and source accounting.

Code example

This standard-library example runs in a notebook, IPython or a script. It matches the two tables by institution and prints the prepared rates with the test-score usage percentages.

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

folder = Path('.')  # Folder containing the downloaded CSVs.
selections = [
    {'unitid': '197869'},  # Appalachian State University
    {'unitid': '199120'},  # University of North Carolina at Chapel Hill
    {'unitid': '199193'},  # North Carolina State University at Raleigh
]

def read_reference(filename):
    with (folder / filename).open(newline='', encoding='utf-8') as f:
        rows = list(csv.DictReader(f))
    lookup = {row['unitid']: row for row in rows}
    if len(lookup) != len(rows):
        raise ValueError('Expected one row per institution')
    return lookup

admissions = read_reference('admissions.csv')
scores = read_reference('test_scores.csv')
results = []
for selection in selections:
    unitid = selection['unitid']
    row = admissions.get(unitid)
    if row is None:
        print(f'{unitid}: absent from the admissions file; check institutions.csv')
        continue
    if row['observation_year'] != '2024':
        raise ValueError('This example requires Fall 2024')
    test = scores.get(unitid, {})
    if test and test['observation_year'] != row['observation_year']:
        raise ValueError('Source years differ')
    result = {
        'unitid': unitid,
        'institution': row['institution_name'],
        'applicants': row['applicants_total'],
        'acceptance': row['acceptance_percent'] + '%' if row['acceptance_status'] == 'available' else 'Unavailable',
        'yield': row['yield_percent'] + '%' if row['yield_status'] == 'available' else 'Unavailable',
        'sat_percent': test.get('sat_percent', ''),
        'act_percent': test.get('act_percent', ''),
    }
    results.append(result)
    sat = result['sat_percent'] + '%' if result['sat_percent'] else 'unavailable'
    act = result['act_percent'] + '%' if result['act_percent'] else 'unavailable'
    print(f"{result['institution']}: {int(result['applicants']):,} applicants | acceptance {result['acceptance']} | yield {result['yield']}")
    print(f"  {row['test_policy']}; enrolled students with scores used: SAT {sat}, ACT {act}")

Replace selections with your UNITIDs or read your own CSV. Keep the identifiers as text and change folder if necessary. The code checks the observation year and preserves unavailable rates.

Analysis of the output

Appalachian State University: 24,614 applicants | acceptance 90.14% | yield 18.20%
  Not required for admission, but considered if submitted (Test Optional); enrolled students with scores used: SAT 9%, ACT 23%
University of North Carolina at Chapel Hill: 66,535 applicants | acceptance 15.34% | yield 45.45%
  Not required for admission, but considered if submitted (Test Optional); enrolled students with scores used: SAT 28%, ACT 41%
North Carolina State University at Raleigh: 44,047 applicants | acceptance 41.74% | yield 31.76%
  Not required for admission, but considered if submitted (Test Optional); enrolled students with scores used: SAT 18%, ACT 29%

UNC Chapel Hill admitted 15.34% of its applicants, and 45.45% of those admitted enrolled. Appalachian State admitted a larger share, 90.14%, while 18.20% of its admitted students enrolled. NC State’s corresponding figures were 41.74% and 31.76%.

Acceptance and yield answer different questions. Acceptance uses applicants as its denominator; yield uses admitted students. These are institutional outcomes for Fall 2024 first-time degree/certificate-seeking undergraduates. They are not a particular student’s probability of acceptance, a quality ranking or evidence of a trend.

All three schools report a test-optional policy. The SAT/ACT percentages refer to enrolled students whose scores were used in an admissions decision: at UNC, for example, 28% for SAT and 41% for ACT. Those groups can overlap. The paid test table also has 25th, 50th and 75th percentiles, which describe the students with scores used, not all applicants or minimum entrance requirements.

The example’s applicant, admit and enrollee totals and test usage percentages carry Reported flags. Elsewhere the download retains publisher imputation and missing-value flags. ACD rates are rounded to two decimals and left blank with an explicit status when their numerator or denominator is unavailable or the denominator is zero.

Using the full dataset

Replace the sample files with the two identically named CSVs in the purchased ZIP. The same code works unchanged. Both contain one row per institution; considerations.csv has one row per institution and consideration, such as high-school GPA, recommendations or test scores.

institutions.csv covers 6,072 directory institutions with open-admission policy, source coverage and response context. The admissions survey applies to non-open-admission institutions. A missing admissions record does not mean zero applicants or a 100% acceptance rate; inspect the directory’s coverage and policy fields.

published_rates.csv preserves NCES’s whole-percent rates for 1,931 institutions. Some source zeros have missing or zero denominators. The ACD total-rate columns in admissions.csv make that distinction explicit; the 25 institutions without a published-rate row still retain their admissions observations.

The download preserves separate men, women, another-gender and unknown-gender counts. Some small or unreportable categories are blank. Do not reconstruct them by subtraction. Flag S occurs on 6,411 blank cells but is not defined in the retained dictionary; its precise meaning remains unknown. The source’s score-reporting rules also withhold percentiles for fewer than five students.

Use UNITID to add college costs and aid, overall enrollment or graduation and retention. Those products have different student populations and periods. See the education and careers collection for the available comparisons.

Sources and versions

Source: NCES IPEDS complete files, ADM2024, DRVADM2024, HD2024, IC2024 and FLAGS2024 with their original dictionaries. Exact bytes were retained November 3, 2026 UTC. Fall 2024 is the observation period; the capture date is not a new 2026 admissions edition.

The admissions dictionaries identify provisional data; context files include later revisions. Preparation explicitly selects the revised IC CSV. Its open-admission values agree with the original for all 5,963 institutions. Academic calendars use the official fall date or October 15; program calendars cover August 1–October 31. Transfers are excluded.

The original survey form clarifies that test scores used in admissions include optional submissions. Some dictionary prose mentions only required scores; the supplied definitions preserve that original text and explain the distinction.

Independent checks compare 800,126 prepared cells with original files, reconcile available count totals and published rates, and check percentile ordering. Every selected source record and field is accounted for. Raw sources, staging, preparation and publication have separate identities and reproduce offline.

NCES downloads are free. ACD sells preparation, validation and documentation. Processing improvements and documented publisher error corrections within purchased scope are included; future source editions may be separate purchases.

Example checked November 3, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.