Commit 08ae4031 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Force dates to be null.

parent fbce65b5
Pipeline #5148 failed with stage
in 2 seconds
......@@ -188,6 +188,9 @@ def calculate_regime(meds):
onco_meds_reformated.loc[onco_meds_reformated.End_date > datetime.datetime(2019, 1, 1), 'End_date'] = None
onco_meds_reformated.loc[onco_meds_reformated.End_date > datetime.datetime(2019, 1, 1), 'Duration'] = None
# If End_date is null
onco_meds_reformated.loc[onco_meds_reformated.End_date.isnull(), 'Duration'] = None
onco_meds_reformated = onco_meds_reformated.reset_index(drop=True)
return onco_meds_reformated
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment