Commit 2bb4cd31 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Handle missing description

parent 7cddef08
......@@ -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 ==
if pd.isna(desc) or (desc ==
desc = 'n/a'
# If metadata has been added to the column,
Supports Markdown
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