Identify and report mismatches between main and support course enrollments across campuses.
This reporting tool flags enrollment mismatches between co-requisite coursesβsuch as MATH 1001 and its paired support course MATH 0997βby comparing CRN-linked class rosters.
The notebook checks whether students enrolled in a main course are properly co-enrolled in its linked support course (and vice versa). Results are presented both in the Colab console and in a downloadable Excel report.
The notebook reads two CSVs hosted in the GitHub repository:
- Class_Rosters_Demo.csv β Contains student enrollment records with CRNs, IDs, names, and emails (synthesized)
- Course_Schedule_Demo.csv β Contains scheduled CRNs and comments fields with references to their paired support CRNs
These files are loaded using pd.read_csv() directly from the GitHub raw links.
- Extracts CRN pairings from comments (e.g., "Students must also enroll in Math 09996 Support for Statistics: CRN 12345")
- Matches student rosters across each main-support CRN pair
- Flags students enrolled in one course but not its pair
- Adds campus info and subject numbers for context
- Prints formatted mismatch reports in the console
- Exports results to a timestamped Excel file
- β Console Report: Highlighted mismatches by CRN and campus
- π Excel Report: One sheet listing mismatched students, direction (Main Only / Support Only), and full enrollment info
Example output includes:
- CRN pair: Main MATH 1001 CRN 54751 (Alpharetta) | Support MATH 0997 CRN 54750 (Clarkston)
- Student mismatches:
In Main OnlyorIn Support Only
This tool is ideal for:
- Academic department schedulers
- Institutional research staff
- Program coordinators overseeing co-requisite models
- Python (Colab environment)
- pandas
- xlsxwriter
Note:
fakerwas used only to synthesize demo data and is not part of the actual reporting logic. No actual student names, emails or student IDs are used
| Console Report |
|----------------|--------------|
|
|
Mismatched_Support_Rosters_Demo.ipynbβ Main notebookClass_Rosters_Demo.csvβ Sample anonymized roster inputCourse_Schedule_Demo.csvβ Sample schedule inputassets/β Output samples screenshots
- Click the "Open in Colab" badge above
- Run all cells
- Download the Excel report at the end
MIT License
