Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
BICF
KCE
kce_etl
Commits
08ae4031
Commit
08ae4031
authored
Nov 17, 2019
by
Venkat Malladi
Browse files
Force dates to be null.
parent
fbce65b5
Pipeline
#5148
failed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/transform_medications.py
View file @
08ae4031
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment