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
3b808999
Commit
3b808999
authored
Apr 25, 2020
by
Venkat Malladi
Browse files
Fixed some typos.
parent
2ac0370a
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/transform_labs.py
View file @
3b808999
...
...
@@ -220,10 +220,10 @@ def main():
labs_clean
,
unmapped_labs
=
convert_units
(
labs_range
,
unitmap_df
,
convert_df
)
# Convert value flags
labs_flag
,
multiple_labs
=
convert_flags
(
labs_clean
)
labs_flag
=
convert_flags
(
labs_clean
)
# Calculate Date Shift
shifted_df
=
calculate_shift
(
labs_flag
,
date_shift
)
shifted_df
,
multiple_labs
=
calculate_shift
(
labs_flag
,
date_shift
)
# Filter and get maximum lab value for shifted date
max_lab
=
calculate_maximum
(
shifted_df
)
...
...
@@ -231,10 +231,14 @@ def main():
# Write out lab table
calculate_maximum
.
to_csv
(
lab_table
,
index
=
False
)
# Write out unmapped
site
s if there are any
# Write out unmapped
lab
s if there are any
if
unmapped_labs
.
shape
[
0
]
>
1
:
unmapped_labs
.
to_csv
(
unmapped_table
,
index
=
False
)
# Write out multiple labs if there are any
if
multiple_labs
.
shape
[
0
]
>
1
:
multiple_labs
.
to_csv
(
multiple_labs_table
,
index
=
False
)
if
__name__
==
'__main__'
:
main
()
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