Repository navigation
US_UrbanSchool_Algebra1 - #2252
Open
goutamabrol wants to merge 16 commits into
Open
goutamabrol wants to merge 16 commits into
goutamabrol wants to merge 16 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the school algebra 1 data import workflow by introducing a dedicated preprocessing step (preprocess_data.py), updating the download script to skip already downloaded files, and updating the manifest, metadata, and test data accordingly. Feedback on the changes suggests optimizing the survey year generation in download_script.py to use a step of 2 for biennial years, which avoids unnecessary download attempts for non-existent odd years.
goutamabrol
force-pushed
the
schoolalgebra
branch
from
October 5, 2026 17:22
96c7d0f to
2129efb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors the
US_UrbanSchool_Algebra1(statvar_imports/school_algebra1) pipeline to separate raw data downloading from preprocessing, standardizesncesidandYEARgeneration across CRDC survey years (2009–2024), and updates the manifest and test fixtures.PR Checklist doc - link
Changes
download_script.py: Decoupled in-place file mutation from downloading so raw CRDC files (.csvand.xlsx) ininput_files/remain intact; added dynamic survey year range detection and skipping for existing downloads.preprocess_data.py: Added a dedicated preprocessing script that reads raw files frominput_files/, constructs zero-padded 12-digitncesidvalues (LEAID+SCHIDorCOMBOKEY), extracts the 4-digit survey completionYEAR, filters to columns mapped inAlgebra1_pvmap.csv, and writes clean CSVs toprocessed_files/.Algebra1_metadata.csv: Removed unusedunitandscalingFactorcolumns fromoutput_columns(observationDate,observationAbout,variableMeasured,value).manifest.json:preprocess_data.pytoscriptsand updatedstat_var_processor.pyto readprocessed_files/*.csvand output counters tocounters/algebra1_counters.csv.counters/*.csvandvalidation_config.jsontosource_files."node_mcf": "output/*.mcf"toimport_inputs.resource_limitsto default values (cpu: 8,memory: 32,disk: 100).test_data/&README.md: Regeneratedinput_test_data.csvandsample_output.csvto match the zero-paddedncesidand 4-column output schema, and updatedREADME.mdto document the 3-step workflow and 2009–2024 coverage.Cloud Batch job (test) - link
Validation - link
CRA = link