Compare college staffing and faculty salaries in Python
Compare full-time and part-time college staffing, instructional counts and nine-month-equivalent salaries with reporting-population context.
Compare employment and instructional pay at three universities
You are preparing a college employment comparison. You want the size of each institution’s full-time and part-time workforce, the number of full-time instructional staff, and an instructional salary benchmark on a consistent nine-month basis.
The optional input.csv contains genuine IPEDS UNITID identifiers for Appalachian State, UNC Chapel Hill and NC State. The same choices appear in the selections list in the Python code below. These institutions illustrate the workflow; they are not a statistically matched peer group.
staffing.csv and salaries.csv are genuine three-institution subsets of the purchased tables. They retain every source group and prepared column for those institutions. Save both files in your working folder. The full $29 reference includes staffing for 5,837 institutions, instructional salary records for 3,782, faculty-status detail, FTE context, a broader institution directory and documentation.
Code example
This standard-library example runs in a notebook, IPython or a script. It selects full-time, part-time and full-time instructional headcounts, then adds the all-ranks instructional salary record. Selecting categories before joining avoids multiplying rows or adding overlapping totals.
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
folder = Path('.')
# Same genuine institution IDs as example_input.csv / the optional input.csv.
selections = [
{'unitid': '197869', 'name': 'Appalachian State'},
{'unitid': '199120', 'name': 'UNC Chapel Hill'},
{'unitid': '199193', 'name': 'NC State'},
]
wanted = {r['unitid'] for r in selections}
def selected_rows(filename, codes):
chosen = {}
with (folder / filename).open(newline='', encoding='utf-8') as source:
for row in csv.DictReader(source):
key = (row['unitid'], row['group_code'])
if row['unitid'] in wanted and row['group_code'] in codes:
if key in chosen:
raise ValueError(f'Duplicate reference key: {key}')
chosen[key] = row
return chosen
# Full-time, part-time and full-time instructional staff; these groups overlap.
staff = selected_rows('staffing.csv', {'2100', '3100', '2210'})
pay = selected_rows('salaries.csv', {'7'}) # All instructional ranks combined.
results = []
for selection in selections:
unitid = selection['unitid']
records = [staff.get((unitid, code)) for code in ('2100', '3100', '2210')]
salary = pay.get((unitid, '7'))
if any(row is None for row in records) or salary is None:
raise ValueError(f'Check source coverage for {unitid}; a missing row is not zero.')
if any(row['observation_period'] != '2024-11-01' for row in records) or salary['observation_period'] != '2024–25':
raise ValueError('Unexpected source period')
average = salary['average_salary_9_month_equivalent_total']
results.append({
'institution': selection['name'],
'full_time_staff': records[0]['staff_total'] or 'unavailable',
'part_time_staff': records[1]['staff_total'] or 'unavailable',
'full_time_instructional': records[2]['staff_total'] or 'unavailable',
'salary_basis_staff': salary['staff_9_to_12_months_total'] or 'unavailable',
'nine_month_salary': f'${int(average):,}' if salary['salary_average_status'] == 'available' else 'unavailable',
})
print('Institution | FT staff | PT staff | FT instructional | Salary-basis staff | 9-month-equivalent salary')
for row in results:
print(' | '.join(row.values()))
Replace selections with your institution IDs, or load them from your own CSV. Keep IDs as text. The code checks the period and refuses to interpret an absent group as a zero. The salary display uses the prepared availability status.
Analysis of the output
Institution | FT staff | PT staff | FT instructional | Salary-basis staff | 9-month-equivalent salary
Appalachian State | 3218 | 417 | 1125 | 1125 | $83,449
UNC Chapel Hill | 14776 | 1048 | 2083 | 1763 | $136,550
NC State | 9760 | 512 | 1962 | 1962 | $116,376
NC State reports 9,760 full-time and 512 part-time staff in the November 1, 2024 snapshot. Its 1,962 full-time instructional staff are part of that workforce, so do not add them to the full-time total.
The nine-month-equivalent instructional salary is $116,376 at NC State, $136,550 at UNC Chapel Hill and $83,449 at Appalachian State. These are nominal base-salary averages for full-time, nonmedical instructional staff working nine to twelve months in 2024–25. They are not average pay for all employees, total compensation, salary offers or measures of teaching quality.
The salary denominator matters. UNC’s 1,763 staff in the salary calculation differ from its 2,083 full-time instructional staff. The salary population excludes medical-school staff and staff working fewer than nine months. The download keeps both counts and the original month-specific values so you can inspect the coverage before comparing institutions. All three selected total salary averages and staff counts have original Reported flags.
Using a common nine-month basis removes one difference in reporting length. It does not control for academic rank, discipline, location or institution type. For compensation benchmarking, select a comparable rank in salaries.csv and choose peers deliberately.
Using the full dataset
Replace the two samples with the identically named files from the purchased ZIP. The same code works unchanged. staffing.csv contains 178,024 institution/category rows; salaries.csv contains 15,216 institution/rank rows. Full-time, part-time, occupational subtotals, demographic totals and academic ranks overlap. Do not sum every record.
faculty_status.csv supplies 20,784 institution/status rows with rank counts for 3,518 institutions. Its coverage is degree-granting institutions with at least 15 full-time employees and related administrative offices. Faculty-status and tenure categories also include overlapping totals and subgroups.
institution_metrics.csv preserves NCES-derived salary averages and FTE measures for 5,912 institutions. FTE uses full-time headcount plus one-third of part-time headcount; it is not a count of people or a measure of actual hours. Some derived records incorporate parent/child allocations. institutions.csv provides the reporting-parent identifiers, allocation factors, response status and component coverage for 6,072 directory records.
Blanks remain blank. Reported, corrected, imputed and implied-zero values retain their original flags. A source average with zero staff is not a usable pay benchmark even if its numeric value is zero. Missing component records are not assumed zeros.
Use UNITID to add enrollment, costs and aid or program completions. Review reporting parents, periods and populations before calculating ratios. An enrollment-to-staff ratio is not automatically a class-size or student-to-faculty measure. See the education and careers collection for companion references.
Sources and versions
Source: NCES IPEDS complete files, S2024_OC, S2024_SIS, SAL2024_IS, DRVHR2024, HD2024 and FLAGS2024 with their original dictionaries. Exact bytes were retained November 3, 2026 UTC. Staffing refers to November 1, 2024; salaries refer to academic year 2024–25. The capture date is not the observation year.
The HR dictionaries identify provisional data; the salary dictionary identifies January 2026 release. Directory and response context include later updates. The original HR instructions explain months worked, salary exclusions and medical-school reporting. Salary contract months refer to months worked, not the number of paychecks.
Independent verification compares 16,994,062 prepared cells against original files and checks available headcount, payroll and salary relationships. All 232,080 selected source records and 408 source columns are accounted for. Retained sources, staging, processing and publication have separate identities and reproduce offline.
The NCES downloads are free. ACD sells preparation, validation and documentation. Same-edition processing improvements and documented publisher error corrections 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.