Downloads math course participation data from SPR database.
Value
Data frame with math course enrollment
Columns have a fixed order; school_year is filtered to the requested year and then removed.
Details
Rows are one per entity x grade band. The grade column carries the
grade as a bare string ("6".."12") plus the sheet's summary
rows ("Total", "Enrolled in AP/IB Course", "Enrolled in
Dual Enrollment Course"); the 2024-25 redesign's "Grade 08" style
labels are normalized to the bare form. Course columns (e.g.
algebra_i) are enrollment counts, returned as numerics; suppression
markers ("N", "n/a") become NA – a masked count is
missing, never zero.