Skip to content

Commit

Permalink
parse-kp: read census tract as string
Browse files Browse the repository at this point in the history
Read in census tract as string in order to preserve leading 0s.
  • Loading branch information
sallybg committed Apr 23, 2024
1 parent 9a801df commit af2d45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seattleflu/id3c/cli/command/clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def parse_kp(kp_filename, kp_specimen_manifest_filename, manifest_format, output
All clinical records parsed are output to stdout as newline-delimited JSON
records. You will likely want to redirect stdout to a file.
"""
clinical_records = pd.read_csv(kp_filename)
clinical_records = pd.read_csv(kp_filename, dtype={'CensusTract': 'string'})
clinical_records.columns = clinical_records.columns.str.lower()

clinical_records = trim_whitespace(clinical_records)
Expand Down

0 comments on commit af2d45b

Please sign in to comment.