Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
ukbparse
Commits
2bb4cd31
Commit
2bb4cd31
authored
May 09, 2019
by
Paul McCarthy
🚵
Browse files
BF: Handle missing description
parent
7cddef08
Changes
1
Hide whitespace changes
Inline
Side-by-side
ukbparse/main.py
View file @
2bb4cd31
...
...
@@ -17,6 +17,8 @@ import warnings
import
datetime
import
calendar
import
pandas
as
pd
import
ukbparse
import
ukbparse.util
as
util
import
ukbparse.icd10
as
icd10
...
...
@@ -442,7 +444,7 @@ def generateDescription(dtable, col):
vartable
=
dtable
.
vartable
desc
=
vartable
.
loc
[
col
.
vid
,
'Description'
]
if
desc
==
col
.
name
:
if
pd
.
isna
(
desc
)
or
(
desc
==
col
.
name
)
:
desc
=
'n/a'
# If metadata has been added to the column,
...
...
Write
Preview
Supports
Markdown
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