Skip to content

Commit 20f16f4

Browse files
committed
fix: Allow raw field to be null
1 parent 83679e7 commit 20f16f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/student_success_tool/analysis/pdp/schemas/raw_cohort.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ class RawPDPCohortDataSchema(pda.DataFrameModel):
7474
dtype_kwargs={"categories": ["FIRST-TIME", "RE-ADMIT", "TRANSFER-IN"]},
7575
)
7676
# NOTE: categories set in a parser, which forces "UK" / "UNKNOWN" values to null
77-
enrollment_intensity_first_term: pt.Series[pd.CategoricalDtype] = pda.Field()
77+
enrollment_intensity_first_term: pt.Series[pd.CategoricalDtype] = pda.Field(
78+
nullable=True
79+
)
7880
# NOTE: categories set in a parser, which forces "UK" values to null
7981
math_placement: pt.Series[pd.CategoricalDtype] = pda.Field(nullable=True)
8082
# NOTE: categories set in a parser, which forces "UK" values to null

0 commit comments

Comments
 (0)