Skip to content

Commit

Permalink
Update clinical.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 authored Apr 23, 2024
1 parent 41b0356 commit 660bc9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genie_registry/clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _check_year_death_validity(clinicaldf: pd.DataFrame) -> str:
Error message if YEAR_DEATH if invalid
"""
error = ""
# generate temp dataframe to handle datatype mismatch in a column
# Generate temp dataframe to handle datatype mismatch in a column
temp = clinicaldf.copy()
# Convert YEAR_DEATH and YEAR_CONTACT to numeric, coercing errors to NaN
temp["YEAR_DEATH"] = pd.to_numeric(temp["YEAR_DEATH"], errors="coerce")
Expand Down

0 comments on commit 660bc9d

Please sign in to comment.