CRDC Data Source Reference
Civil Rights Data Collection (CRDC) — mandatory biennial OCR survey of all U.S. public schools measuring educational opportunity and civil rights compliance (2011-2021). Use when analyzing school discipline disparities by race/disability, course access equity, harassment, restraint/seclusion, or chronic absenteeism. Data disaggregated by race, sex, disability, and English learner status. Note: 2020-21 is COVID-impacted and not directly comparable to other years; 2011-14 are sampled, not universe.
The Civil Rights Data Collection is a mandatory biennial survey of all U.S. public schools measuring educational opportunity and civil rights compliance. It is the only national source for school-level discipline disparities, course access equity, harassment, and restraint/seclusion data disaggregated by race, sex, disability, and English learner status.
CRITICAL: Value Encoding
The Education Data Portal uses integer codes, not the string codes shown in OCR documentation. Always filter using integers.
| Variable |
String Code (Raw) |
Portal Integer |
| Race: White |
WH |
1 |
| Race: Black |
BL |
2 |
| Race: Hispanic |
HI |
3 |
| Sex: Male |
M |
1 |
| Sex: Female |
F |
2 |
See ./references/variable-definitions.md for complete encoding tables.
What is CRDC?
The Civil Rights Data Collection is a mandatory biennial survey of all public schools and districts that measures educational opportunity and civil rights compliance:
- Collector: U.S. Department of Education, Office for Civil Rights (OCR)
- Purpose: Enforce civil rights laws, identify discrimination, monitor equity
- Coverage: All public LEAs and schools receiving federal financial assistance
- Frequency: Biennial (every 2 school years)
- Disaggregation: Race/ethnicity, sex, disability status, English learner status
- History: Collected since 1968 (as Elementary and Secondary School Civil Rights Survey)
- Available years: 2011, 2013, 2015, 2017, 2020, 2021 (biennial — no data for even-numbered school years)
- Available through: Education Data Portal mirrors
Reference File Structure
| File |
Purpose |
When to Read |
civil-rights-context.md |
Legal framework (Title VI, IX, Section 504, IDEA) |
Understanding why data is collected |
data-elements.md |
All data categories and what's collected |
Planning analysis, identifying variables |
collection-methodology.md |
Sampling, universe, timeline, reporting |
Understanding coverage limitations |
variable-definitions.md |
Key variables, codes, disaggregation categories |
Coding data, interpreting values |
data-quality.md |
Known issues, suppression, state variations |
Addressing limitations in analysis |
historical-changes.md |
Evolution across collection years |
Time series analysis, year comparison |
Decision Trees
What CRDC data do I need?
Research topic?
├─ School discipline
│ ├─ Suspensions (ISS/OSS) → ./references/data-elements.md#discipline
│ ├─ Expulsions → ./references/data-elements.md#discipline
│ ├─ Referrals to law enforcement → ./references/data-elements.md#discipline
│ ├─ School-related arrests → ./references/data-elements.md#discipline
│ └─ Preschool suspensions → ./references/data-elements.md#discipline
├─ Restraint and seclusion
│ └─ Physical restraint, mechanical, seclusion → ./references/data-elements.md#restraint-seclusion
├─ Harassment and bullying
│ ├─ Allegations by type → ./references/data-elements.md#harassment
│ └─ Disciplined for harassment → ./references/data-elements.md#harassment
├─ Course access and enrollment
│ ├─ AP/IB courses → ./references/data-elements.md#advanced-courses
│ ├─ Gifted/talented → ./references/data-elements.md#gifted-talented
│ ├─ Math/science courses → ./references/data-elements.md#course-access
│ └─ Computer science → ./references/data-elements.md#course-access
├─ Chronic absenteeism
│ └─ Students missing 15+ days → ./references/data-elements.md#chronic-absenteeism
├─ Special populations
│ ├─ Students with disabilities (IDEA) → ./references/data-elements.md#students-with-disabilities
│ ├─ English learners → ./references/data-elements.md#english-learners
│ └─ Preschool enrollment → ./references/data-elements.md#preschool
├─ School staffing
│ ├─ Teacher experience/certification → ./references/data-elements.md#staffing
│ └─ Counselors, nurses, etc. → ./references/data-elements.md#staffing
└─ School safety
└─ Offenses, violence, weapons → ./references/data-elements.md#school-offenses
Understanding the legal context?
Civil rights law question?
├─ Race/ethnicity discrimination → ./references/civil-rights-context.md#title-vi
├─ Sex/gender discrimination → ./references/civil-rights-context.md#title-ix
├─ Disability discrimination → ./references/civil-rights-context.md#section-504
├─ Special education services → ./references/civil-rights-context.md#idea
├─ Age discrimination → ./references/civil-rights-context.md#age-discrimination-act
└─ OCR enforcement process → ./references/civil-rights-context.md#ocr-enforcement
Data quality concerns?
Data quality issue?
├─ Missing or suppressed data → ./references/data-quality.md#suppression
├─ Definition inconsistencies → ./references/data-quality.md#definition-variation
├─ Year-to-year comparability → ./references/historical-changes.md
├─ COVID-19 impact (2020-21) → ./references/data-quality.md#covid-impact
├─ Underreporting concerns → ./references/data-quality.md#underreporting
└─ State-level variations → ./references/data-quality.md#state-variations
Quick Reference: CRDC Data Categories
Collection Years
| School Year |
Collection |
Coverage |
Key Notes |
| 2011-12 |
Sample |
~7,000 districts |
First modern CRDC; sampled |
| 2013-14 |
Expanded |
~16,000 districts |
Larger sample |
| 2015-16 |
Near-universe |
~96,000 schools |
First near-complete |
| 2017-18 |
Universe |
~96,000 schools |
Full universe collection |
| 2020-21 |
Universe |
~97,500 schools |
COVID-impacted year |
| 2021-22 |
Universe |
~98,000 schools |
Post-pandemic baseline |
| 2023-24 |
Universe |
In progress |
Current collection |
Critical: CRDC is biennial - no data for odd years (2012, 2014, 2016, 2018, 2019).
Data Categories
| Category |
Description |
Disaggregation |
| Enrollment |
Student counts by grade level |
Race, sex, disability, LEP |
| Discipline |
Suspensions, expulsions, arrests |
Race, sex, disability, LEP |
| Restraint/Seclusion |
Physical/mechanical restraint, seclusion |
Race, sex, disability |
| Harassment |
Allegations and discipline by type |
Race, sex, disability |
| Course Access |
AP, IB, math, science, CS offerings |
School-level, enrollment by race/sex |
| Chronic Absenteeism |
15+ days missed |
Race, sex, disability, LEP |
| Staffing |
Teachers, counselors, nurses, etc. |
FTE counts, qualifications |
| Offenses |
Violence, weapons, drugs at school |
Type of offense |
| Retention |
Students retained in grade |
Race, sex, disability |
Key Identifiers
| ID |
Format |
Level |
Example |
Notes |
crdc_id |
12-digit string |
School |
010000201705 |
Primary CRDC identifier; always present |
ncessch |
12-digit string |
School |
010000201705 |
NCES school ID, joins to CCD; may be null for some entries |
leaid |
7-digit string |
District |
0100002 |
NCES district ID, joins to CCD; always present |
Note: The OCR-internal combokey (e.g., AL-0010-00002) does NOT appear as a column in Portal data. Use crdc_id or ncessch for school-level identification.
WARNING: String Type Override Required. When reading CRDC data from CSV, ncessch, leaid, and crdc_id must be read as String (pl.Utf8) via schema_overrides. Polars infers these as Int64, silently destroying leading zeros for ~19% of rows (FIPS 01-09 states: AL, AK, AZ, AR, CA, CO, CT). Parquet files preserve types automatically.
Race/Ethnicity (Portal Integer Codes)
| Code |
Category |
1 |
White |
2 |
Black or African American |
3 |
Hispanic/Latino of any race |
4 |
Asian |
5 |
American Indian or Alaska Native |
6 |
Native Hawaiian or Other Pacific Islander |
7 |
Two or more races |
99 |
Total |
Empirically observed values: Codes 1-7 and 99 appear in CRDC data. Additional codes (8 Nonresident alien, 9 Unknown, 20 Other) are defined in the codebook but are not observed in practice for K-12 CRDC datasets. See variable-definitions.md for the full codebook listing.
Sex (Portal Integer Codes)
| Code |
Category |
1 |
Male |
2 |
Female |
3 |
Non-binary/other (newer collections; rows exist but mostly contain -1 or -2 values) |
99 |
Total |
Disability Status (Portal Integer Codes)
| Code |
Category |
0 |
Students without disabilities |
1 |
Students with disabilities (served under IDEA) |
2 |
Students with Section 504 only |
3 |
Students not served under IDEA (includes 504-only and non-disabled) |
4 |
Students with disabilities (combined: IDEA + Section 504) |
99 |
Total |
Note: Not all disability codes appear in every dataset. Enrollment data typically has [1, 2, 99]; discipline data has [0, 1, 2, 4, 99]. Verify codes against the live codebook for your specific dataset.
English Learner Status (Portal Integer Codes)
| Code |
Category |
1 |
English learner (EL/LEP) |
99 |
All students |
Missing Data Codes
| Code |
Meaning |
When Used |
-1 |
Missing |
Data not reported by school/district |
-2 |
Not applicable |
Item doesn't apply to this entity |
-3 |
Suppressed |
Data suppressed for privacy (small cell sizes) |
-9 |
Skip pattern |
Question not asked in this collection year (rare; check codebook) |
null |
Not available |
Value absent from dataset (e.g., ncessch is null for some schools) |
Verify these codes against the live codebook for your specific dataset. Use get_codebook_url() from fetch-patterns.md.
Data Access
Datasets for CRDC are available via the Education Data Portal mirror system. See datasets-reference.md for canonical paths, mirrors.yaml for mirror configuration, and fetch-patterns.md for fetch code patterns including fetch_from_mirrors() and fetch_yearly_from_mirrors().
Key datasets (6 of 22 total):
| Dataset |
Path |
Type |
Codebook |
| Discipline |
crdc/schools_crdc_discipline_k12_{year} |
Yearly |
crdc/codebook_schools_crdc_discipline |
| AP/IB Enrollment |
crdc/schools_crdc_apib_enroll |
Single |
crdc/codebook_schools_crdc_ap-ib-enrollment |
| Enrollment |
crdc/schools_crdc_enrollment_k12_{year} |
Yearly |
crdc/codebook_schools_crdc_enrollment |
| Chronic Absenteeism |
crdc/schools_crdc_chronic_absenteeism_{year} |
Yearly |
crdc/codebook_schools_crdc_chronic-absenteeism |
| Harassment/Bullying |
crdc/schools_crdc_harass_bully_students_{year} |
Yearly |
crdc/codebook_schools_crdc_harrassment-bullying-students |
| Restraint/Seclusion |
crdc/schools_crdc_restraint_seclusion_students_{year} |
Yearly |
crdc/codebook_schools_crdc_restraint-seclusion-students |
22 CRDC datasets exist total (6 yearly, 16 single-file). See datasets-reference.md for the complete list with all paths and codebook references.
CRDC naming note: Some data file paths use concatenated names (e.g., disciplineinstances, mathandscience) while their codebook counterparts use underscored names (e.g., discipline_instances, math_and_science). Always use the exact paths from datasets-reference.md.
Codebooks are .xls files co-located with data in all mirrors. Use get_codebook_url() from fetch-patterns.md to construct download URLs:
from fetch_patterns import get_codebook_url
url = get_codebook_url("crdc/codebook_schools_crdc_discipline")
Truth Hierarchy: When interpreting variable values, apply this priority:
- Actual data file (what you observe in the parquet/CSV) -- this IS the truth
- Live codebook (.xls in mirror) -- authoritative documentation, may lag
- This skill documentation -- convenient summary, may drift from codebook
If this documentation contradicts the codebook, trust the codebook. If the codebook contradicts observed data, trust the data and investigate.
Filtering
import polars as pl
# Filter to a single state (California) and disaggregated race groups
df = df.filter(
(pl.col("fips") == 6) & # California
(pl.col("race") < 99) # Exclude totals row
)
# Filter to specific demographic intersection
df = df.filter(
(pl.col("race") == 2) & # Black students
(pl.col("sex") == 99) & # Both sexes (total)
(pl.col("disability") == 99) # All disability statuses
)
Common Pitfalls
| Pitfall |
Issue |
Solution |
| Using string codes |
Portal uses integers, not strings |
race == 2 not race == "BL" |
| Raw counts |
Different enrollment sizes |
Use rates per 100/1000 students |
| Missing years |
Assuming annual data |
Remember biennial schedule |
| COVID year |
2020-21 not comparable |
Flag or exclude from trends |
| Suppression |
Small cell suppression |
Check suppression rates first |
| Sample years |
Early years sampled |
Use 2015+ for national estimates |
| Definition drift |
Variables change over time |
Check codebooks for each year |
| Forgetting code 99 |
Including totals in calculations |
Filter race < 99 for disaggregated analysis |
| CSV type inference |
Polars infers ncessch/leaid/crdc_id as Int64 |
Use schema_overrides={"ncessch": pl.Utf8, "leaid": pl.Utf8, "crdc_id": pl.Utf8} |
Equity Analysis Framework
CRDC data is designed for civil rights analysis. Key analytical approaches:
Disparity Ratios
import polars as pl
# Calculate discipline disparity using Portal integer codes
def discipline_disparity(df, discipline_var, group_a, group_b):
"""
Calculate risk ratio between two groups.
Value > 1 indicates group_a has higher rate.
Args:
df: DataFrame with CRDC data
discipline_var: Column with discipline counts
group_a: Integer race code (e.g., 2 for Black)
group_b: Integer race code (e.g., 1 for White)
Example:
# Black vs White OSS disparity
disparity = discipline_disparity(df, 'students_susp_out_sch_single', 2, 1)
"""
# Filter to each group (using integer codes)
df_a = df.filter(pl.col('race') == group_a)
df_b = df.filter(pl.col('race') == group_b)
# Calculate rates
rate_a = df_a.select(pl.col(discipline_var).sum()).item() / \
df_a.select(pl.col('enrollment_crdc').sum()).item()
rate_b = df_b.select(pl.col(discipline_var).sum()).item() / \
df_b.select(pl.col('enrollment_crdc').sum()).item()
return rate_a / rate_b
# Example: Black (race=2) vs White (race=1) disparity
# disparity = discipline_disparity(df, 'students_susp_out_sch_single', 2, 1)
Composition vs. Representation
- Composition: What share of suspended students are Black?
- Representation: Are Black students suspended at higher rates than enrollment share?
Risk Ratios
- Compare discipline/outcome rates across groups
- Adjust for school-level factors when appropriate
Related Data Sources
| Source |
Relationship |
When to Use |
education-data-source-ccd |
School/district characteristics |
Linking CRDC to school demographics, locale, Title I status (join on ncessch or leaid) |
education-data-source-edfacts |
Assessment outcomes |
Comparing discipline patterns to academic outcomes |
education-data-explorer |
Parent discovery skill |
Finding available CRDC endpoints and variables |
education-data-query |
Data fetching |
Downloading CRDC parquet/CSV files from mirrors |
education-data-context |
General interpretation |
Education data interpretation and citation generation |
Topic Index
| Topic |
Reference File |
| Title VI (race) |
./references/civil-rights-context.md |
| Title IX (sex) |
./references/civil-rights-context.md |
| Section 504 (disability) |
./references/civil-rights-context.md |
| IDEA |
./references/civil-rights-context.md |
| OCR enforcement |
./references/civil-rights-context.md |
| Discipline data |
./references/data-elements.md |
| Restraint/seclusion |
./references/data-elements.md |
| Harassment |
./references/data-elements.md |
| Course access |
./references/data-elements.md |
| AP/IB/Gifted |
./references/data-elements.md |
| Chronic absenteeism |
./references/data-elements.md |
| Staffing |
./references/data-elements.md |
| Preschool |
./references/data-elements.md |
| Sampling approach |
./references/collection-methodology.md |
| Collection timeline |
./references/collection-methodology.md |
| Variable codes |
./references/variable-definitions.md |
| Suppression rules |
./references/data-quality.md |
| COVID impact |
./references/data-quality.md |
| Year changes |
./references/historical-changes.md |
1---
2name: education-data-source-crdc
3description: >-
4 CRDC — biennial OCR survey of all U.S. public schools (2011-2021). Discipline, course access, harassment, restraint/seclusion by race/sex/disability/EL. Use for civil rights and equity analysis. 2020-21 COVID-impacted; 2011-14 sampled, not universe.
5metadata:
6 source: https://skillmd.com/skills/brycewang-stanford/education-data-source-crdc
7 audience: any-agent
8 domain: data-source
9 skill-authored: "2026-02-09"
10 skill-last-updated: "2026-02-09"
11---
12
13# CRDC Data Source Reference
14
15Civil Rights Data Collection (CRDC) — mandatory biennial OCR survey of all U.S. public schools measuring educational opportunity and civil rights compliance (2011-2021). Use when analyzing school discipline disparities by race/disability, course access equity, harassment, restraint/seclusion, or chronic absenteeism. Data disaggregated by race, sex, disability, and English learner status. Note: 2020-21 is COVID-impacted and not directly comparable to other years; 2011-14 are sampled, not universe.
16
17The Civil Rights Data Collection is a mandatory biennial survey of all U.S. public schools measuring educational opportunity and civil rights compliance. It is the only national source for school-level discipline disparities, course access equity, harassment, and restraint/seclusion data disaggregated by race, sex, disability, and English learner status.
18
19> **CRITICAL: Value Encoding**
20>
21> The Education Data Portal uses **integer codes**, not the string codes shown in OCR documentation. Always filter using integers.
22>
23> | Variable | String Code (Raw) | Portal Integer |
24> |----------|-------------------|----------------|
25> | Race: White | `WH` | `1` |
26> | Race: Black | `BL` | `2` |
27> | Race: Hispanic | `HI` | `3` |
28> | Sex: Male | `M` | `1` |
29> | Sex: Female | `F` | `2` |
30>
31> See `./references/variable-definitions.md` for complete encoding tables.
32
33## What is CRDC?
34
35The Civil Rights Data Collection is a **mandatory biennial survey** of all public schools and districts that measures educational opportunity and civil rights compliance:
36
37- **Collector**: U.S. Department of Education, Office for Civil Rights (OCR)
38- **Purpose**: Enforce civil rights laws, identify discrimination, monitor equity
39- **Coverage**: All public LEAs and schools receiving federal financial assistance
40- **Frequency**: Biennial (every 2 school years)
41- **Disaggregation**: Race/ethnicity, sex, disability status, English learner status
42- **History**: Collected since 1968 (as Elementary and Secondary School Civil Rights Survey)
43- **Available years**: 2011, 2013, 2015, 2017, 2020, 2021 (biennial — no data for even-numbered school years)
44- **Available through**: Education Data Portal mirrors
45
46## Reference File Structure
47
48| File | Purpose | When to Read |
49|------|---------|--------------|
50| `civil-rights-context.md` | Legal framework (Title VI, IX, Section 504, IDEA) | Understanding why data is collected |
51| `data-elements.md` | All data categories and what's collected | Planning analysis, identifying variables |
52| `collection-methodology.md` | Sampling, universe, timeline, reporting | Understanding coverage limitations |
53| `variable-definitions.md` | Key variables, codes, disaggregation categories | Coding data, interpreting values |
54| `data-quality.md` | Known issues, suppression, state variations | Addressing limitations in analysis |
55| `historical-changes.md` | Evolution across collection years | Time series analysis, year comparison |
56
57## Decision Trees
58
59### What CRDC data do I need?
60
61```
62Research topic?
63├─ School discipline
64│ ├─ Suspensions (ISS/OSS) → ./references/data-elements.md#discipline
65│ ├─ Expulsions → ./references/data-elements.md#discipline
66│ ├─ Referrals to law enforcement → ./references/data-elements.md#discipline
67│ ├─ School-related arrests → ./references/data-elements.md#discipline
68│ └─ Preschool suspensions → ./references/data-elements.md#discipline
69├─ Restraint and seclusion
70│ └─ Physical restraint, mechanical, seclusion → ./references/data-elements.md#restraint-seclusion
71├─ Harassment and bullying
72│ ├─ Allegations by type → ./references/data-elements.md#harassment
73│ └─ Disciplined for harassment → ./references/data-elements.md#harassment
74├─ Course access and enrollment
75│ ├─ AP/IB courses → ./references/data-elements.md#advanced-courses
76│ ├─ Gifted/talented → ./references/data-elements.md#gifted-talented
77│ ├─ Math/science courses → ./references/data-elements.md#course-access
78│ └─ Computer science → ./references/data-elements.md#course-access
79├─ Chronic absenteeism
80│ └─ Students missing 15+ days → ./references/data-elements.md#chronic-absenteeism
81├─ Special populations
82│ ├─ Students with disabilities (IDEA) → ./references/data-elements.md#students-with-disabilities
83│ ├─ English learners → ./references/data-elements.md#english-learners
84│ └─ Preschool enrollment → ./references/data-elements.md#preschool
85├─ School staffing
86│ ├─ Teacher experience/certification → ./references/data-elements.md#staffing
87│ └─ Counselors, nurses, etc. → ./references/data-elements.md#staffing
88└─ School safety
89 └─ Offenses, violence, weapons → ./references/data-elements.md#school-offenses
90```
91
92### Understanding the legal context?
93
94```
95Civil rights law question?
96├─ Race/ethnicity discrimination → ./references/civil-rights-context.md#title-vi
97├─ Sex/gender discrimination → ./references/civil-rights-context.md#title-ix
98├─ Disability discrimination → ./references/civil-rights-context.md#section-504
99├─ Special education services → ./references/civil-rights-context.md#idea
100├─ Age discrimination → ./references/civil-rights-context.md#age-discrimination-act
101└─ OCR enforcement process → ./references/civil-rights-context.md#ocr-enforcement
102```
103
104### Data quality concerns?
105
106```
107Data quality issue?
108├─ Missing or suppressed data → ./references/data-quality.md#suppression
109├─ Definition inconsistencies → ./references/data-quality.md#definition-variation
110├─ Year-to-year comparability → ./references/historical-changes.md
111├─ COVID-19 impact (2020-21) → ./references/data-quality.md#covid-impact
112├─ Underreporting concerns → ./references/data-quality.md#underreporting
113└─ State-level variations → ./references/data-quality.md#state-variations
114```
115
116## Quick Reference: CRDC Data Categories
117
118### Collection Years
119
120| School Year | Collection | Coverage | Key Notes |
121|-------------|------------|----------|-----------|
122| 2011-12 | Sample | ~7,000 districts | First modern CRDC; sampled |
123| 2013-14 | Expanded | ~16,000 districts | Larger sample |
124| 2015-16 | Near-universe | ~96,000 schools | First near-complete |
125| 2017-18 | Universe | ~96,000 schools | Full universe collection |
126| 2020-21 | Universe | ~97,500 schools | COVID-impacted year |
127| 2021-22 | Universe | ~98,000 schools | Post-pandemic baseline |
128| 2023-24 | Universe | In progress | Current collection |
129
130**Critical**: CRDC is biennial - no data for odd years (2012, 2014, 2016, 2018, 2019).
131
132### Data Categories
133
134| Category | Description | Disaggregation |
135|----------|-------------|----------------|
136| **Enrollment** | Student counts by grade level | Race, sex, disability, LEP |
137| **Discipline** | Suspensions, expulsions, arrests | Race, sex, disability, LEP |
138| **Restraint/Seclusion** | Physical/mechanical restraint, seclusion | Race, sex, disability |
139| **Harassment** | Allegations and discipline by type | Race, sex, disability |
140| **Course Access** | AP, IB, math, science, CS offerings | School-level, enrollment by race/sex |
141| **Chronic Absenteeism** | 15+ days missed | Race, sex, disability, LEP |
142| **Staffing** | Teachers, counselors, nurses, etc. | FTE counts, qualifications |
143| **Offenses** | Violence, weapons, drugs at school | Type of offense |
144| **Retention** | Students retained in grade | Race, sex, disability |
145
146### Key Identifiers
147
148| ID | Format | Level | Example | Notes |
149|----|--------|-------|---------|-------|
150| `crdc_id` | 12-digit string | School | `010000201705` | Primary CRDC identifier; always present |
151| `ncessch` | 12-digit string | School | `010000201705` | NCES school ID, joins to CCD; may be null for some entries |
152| `leaid` | 7-digit string | District | `0100002` | NCES district ID, joins to CCD; always present |
153
154> **Note:** The OCR-internal `combokey` (e.g., `AL-0010-00002`) does NOT appear as a column in Portal data. Use `crdc_id` or `ncessch` for school-level identification.
155
156> **WARNING: String Type Override Required.** When reading CRDC data from CSV, `ncessch`, `leaid`, and `crdc_id` must be read as String (`pl.Utf8`) via `schema_overrides`. Polars infers these as Int64, silently destroying leading zeros for ~19% of rows (FIPS 01-09 states: AL, AK, AZ, AR, CA, CO, CT). Parquet files preserve types automatically.
157
158### Race/Ethnicity (Portal Integer Codes)
159
160| Code | Category |
161|------|----------|
162| `1` | White |
163| `2` | Black or African American |
164| `3` | Hispanic/Latino of any race |
165| `4` | Asian |
166| `5` | American Indian or Alaska Native |
167| `6` | Native Hawaiian or Other Pacific Islander |
168| `7` | Two or more races |
169| `99` | Total |
170
171> **Empirically observed values:** Codes `1`-`7` and `99` appear in CRDC data. Additional codes (`8` Nonresident alien, `9` Unknown, `20` Other) are defined in the codebook but are not observed in practice for K-12 CRDC datasets. See `variable-definitions.md` for the full codebook listing.
172
173### Sex (Portal Integer Codes)
174
175| Code | Category |
176|------|----------|
177| `1` | Male |
178| `2` | Female |
179| `3` | Non-binary/other (newer collections; rows exist but mostly contain -1 or -2 values) |
180| `99` | Total |
181
182### Disability Status (Portal Integer Codes)
183
184| Code | Category |
185|------|----------|
186| `0` | Students without disabilities |
187| `1` | Students with disabilities (served under IDEA) |
188| `2` | Students with Section 504 only |
189| `3` | Students not served under IDEA (includes 504-only and non-disabled) |
190| `4` | Students with disabilities (combined: IDEA + Section 504) |
191| `99` | Total |
192
193> **Note:** Not all disability codes appear in every dataset. Enrollment data typically has `[1, 2, 99]`; discipline data has `[0, 1, 2, 4, 99]`. Verify codes against the live codebook for your specific dataset.
194
195### English Learner Status (Portal Integer Codes)
196
197| Code | Category |
198|------|----------|
199| `1` | English learner (EL/LEP) |
200| `99` | All students |
201
202### Missing Data Codes
203
204| Code | Meaning | When Used |
205|------|---------|-----------|
206| `-1` | Missing | Data not reported by school/district |
207| `-2` | Not applicable | Item doesn't apply to this entity |
208| `-3` | Suppressed | Data suppressed for privacy (small cell sizes) |
209| `-9` | Skip pattern | Question not asked in this collection year (rare; check codebook) |
210| `null` | Not available | Value absent from dataset (e.g., `ncessch` is null for some schools) |
211
212> Verify these codes against the live codebook for your specific dataset. Use `get_codebook_url()` from `fetch-patterns.md`.
213
214## Data Access
215
216Datasets for CRDC are available via the Education Data Portal mirror system. See `datasets-reference.md` for canonical paths, `mirrors.yaml` for mirror configuration, and `fetch-patterns.md` for fetch code patterns including `fetch_from_mirrors()` and `fetch_yearly_from_mirrors()`.
217
218**Key datasets (6 of 22 total):**
219
220| Dataset | Path | Type | Codebook |
221|---------|------|------|----------|
222| Discipline | `crdc/schools_crdc_discipline_k12_{year}` | Yearly | `crdc/codebook_schools_crdc_discipline` |
223| AP/IB Enrollment | `crdc/schools_crdc_apib_enroll` | Single | `crdc/codebook_schools_crdc_ap-ib-enrollment` |
224| Enrollment | `crdc/schools_crdc_enrollment_k12_{year}` | Yearly | `crdc/codebook_schools_crdc_enrollment` |
225| Chronic Absenteeism | `crdc/schools_crdc_chronic_absenteeism_{year}` | Yearly | `crdc/codebook_schools_crdc_chronic-absenteeism` |
226| Harassment/Bullying | `crdc/schools_crdc_harass_bully_students_{year}` | Yearly | `crdc/codebook_schools_crdc_harrassment-bullying-students` |
227| Restraint/Seclusion | `crdc/schools_crdc_restraint_seclusion_students_{year}` | Yearly | `crdc/codebook_schools_crdc_restraint-seclusion-students` |
228
22922 CRDC datasets exist total (6 yearly, 16 single-file). See `datasets-reference.md` for the complete list with all paths and codebook references.
230
231> **CRDC naming note:** Some data file paths use concatenated names (e.g., `disciplineinstances`, `mathandscience`) while their codebook counterparts use underscored names (e.g., `discipline_instances`, `math_and_science`). Always use the exact paths from `datasets-reference.md`.
232
233Codebooks are `.xls` files co-located with data in all mirrors. Use `get_codebook_url()` from `fetch-patterns.md` to construct download URLs:
234
235```python
236from fetch_patterns import get_codebook_url
237url = get_codebook_url("crdc/codebook_schools_crdc_discipline")
238```
239
240> **Truth Hierarchy:** When interpreting variable values, apply this priority:
241> 1. **Actual data file** (what you observe in the parquet/CSV) -- this IS the truth
242> 2. **Live codebook** (.xls in mirror) -- authoritative documentation, may lag
243> 3. **This skill documentation** -- convenient summary, may drift from codebook
244>
245> If this documentation contradicts the codebook, trust the codebook. If the codebook contradicts observed data, trust the data and investigate.
246
247### Filtering
248
249```python
250import polars as pl
251
252# Filter to a single state (California) and disaggregated race groups
253df = df.filter(
254 (pl.col("fips") == 6) & # California
255 (pl.col("race") < 99) # Exclude totals row
256)
257
258# Filter to specific demographic intersection
259df = df.filter(
260 (pl.col("race") == 2) & # Black students
261 (pl.col("sex") == 99) & # Both sexes (total)
262 (pl.col("disability") == 99) # All disability statuses
263)
264```
265
266## Common Pitfalls
267
268| Pitfall | Issue | Solution |
269|---------|-------|----------|
270| **Using string codes** | Portal uses integers, not strings | `race == 2` not `race == "BL"` |
271| **Raw counts** | Different enrollment sizes | Use rates per 100/1000 students |
272| **Missing years** | Assuming annual data | Remember biennial schedule |
273| **COVID year** | 2020-21 not comparable | Flag or exclude from trends |
274| **Suppression** | Small cell suppression | Check suppression rates first |
275| **Sample years** | Early years sampled | Use 2015+ for national estimates |
276| **Definition drift** | Variables change over time | Check codebooks for each year |
277| **Forgetting code 99** | Including totals in calculations | Filter `race < 99` for disaggregated analysis |
278| **CSV type inference** | Polars infers `ncessch`/`leaid`/`crdc_id` as Int64 | Use `schema_overrides={"ncessch": pl.Utf8, "leaid": pl.Utf8, "crdc_id": pl.Utf8}` |
279
280## Equity Analysis Framework
281
282CRDC data is designed for civil rights analysis. Key analytical approaches:
283
284### Disparity Ratios
285
286```python
287import polars as pl
288
289# Calculate discipline disparity using Portal integer codes
290def discipline_disparity(df, discipline_var, group_a, group_b):
291 """
292 Calculate risk ratio between two groups.
293 Value > 1 indicates group_a has higher rate.
294
295 Args:
296 df: DataFrame with CRDC data
297 discipline_var: Column with discipline counts
298 group_a: Integer race code (e.g., 2 for Black)
299 group_b: Integer race code (e.g., 1 for White)
300
301 Example:
302 # Black vs White OSS disparity
303 disparity = discipline_disparity(df, 'students_susp_out_sch_single', 2, 1)
304 """
305 # Filter to each group (using integer codes)
306 df_a = df.filter(pl.col('race') == group_a)
307 df_b = df.filter(pl.col('race') == group_b)
308
309 # Calculate rates
310 rate_a = df_a.select(pl.col(discipline_var).sum()).item() / \
311 df_a.select(pl.col('enrollment_crdc').sum()).item()
312 rate_b = df_b.select(pl.col(discipline_var).sum()).item() / \
313 df_b.select(pl.col('enrollment_crdc').sum()).item()
314
315 return rate_a / rate_b
316
317# Example: Black (race=2) vs White (race=1) disparity
318# disparity = discipline_disparity(df, 'students_susp_out_sch_single', 2, 1)
319```
320
321### Composition vs. Representation
322
323- **Composition**: What share of suspended students are Black?
324- **Representation**: Are Black students suspended at higher rates than enrollment share?
325
326### Risk Ratios
327
328- Compare discipline/outcome rates across groups
329- Adjust for school-level factors when appropriate
330
331## Related Data Sources
332
333| Source | Relationship | When to Use |
334|--------|--------------|-------------|
335| `education-data-source-ccd` | School/district characteristics | Linking CRDC to school demographics, locale, Title I status (join on `ncessch` or `leaid`) |
336| `education-data-source-edfacts` | Assessment outcomes | Comparing discipline patterns to academic outcomes |
337| `education-data-explorer` | Parent discovery skill | Finding available CRDC endpoints and variables |
338| `education-data-query` | Data fetching | Downloading CRDC parquet/CSV files from mirrors |
339| `education-data-context` | General interpretation | Education data interpretation and citation generation |
340
341## Topic Index
342
343| Topic | Reference File |
344|-------|---------------|
345| Title VI (race) | `./references/civil-rights-context.md` |
346| Title IX (sex) | `./references/civil-rights-context.md` |
347| Section 504 (disability) | `./references/civil-rights-context.md` |
348| IDEA | `./references/civil-rights-context.md` |
349| OCR enforcement | `./references/civil-rights-context.md` |
350| Discipline data | `./references/data-elements.md` |
351| Restraint/seclusion | `./references/data-elements.md` |
352| Harassment | `./references/data-elements.md` |
353| Course access | `./references/data-elements.md` |
354| AP/IB/Gifted | `./references/data-elements.md` |
355| Chronic absenteeism | `./references/data-elements.md` |
356| Staffing | `./references/data-elements.md` |
357| Preschool | `./references/data-elements.md` |
358| Sampling approach | `./references/collection-methodology.md` |
359| Collection timeline | `./references/collection-methodology.md` |
360| Variable codes | `./references/variable-definitions.md` |
361| Suppression rules | `./references/data-quality.md` |
362| COVID impact | `./references/data-quality.md` |
363| Year changes | `./references/historical-changes.md` |