Update dataset_utils.py
Browse files- dataset_utils.py +2 -1
dataset_utils.py
CHANGED
@@ -82,7 +82,7 @@ def concat_data(data,interval,feat_cond,feat_proc,feat_out,feat_chart,feat_meds,
|
|
82 |
meds=data['Med']
|
83 |
proc = data['Proc']
|
84 |
out = data['Out']
|
85 |
-
charts = data['Chart']
|
86 |
cond= data['Cond']['fids']
|
87 |
|
88 |
#demographic
|
@@ -129,6 +129,7 @@ def concat_data(data,interval,feat_cond,feat_proc,feat_out,feat_chart,feat_meds,
|
|
129 |
##########CHART#########
|
130 |
if (feat_chart):
|
131 |
if charts:
|
|
|
132 |
feat=charts.keys()
|
133 |
chart_val=[charts[key] for key in feat]
|
134 |
chart_df=pd.DataFrame(np.zeros([interval,len(chartDict)]),columns=chartDict)
|
|
|
82 |
meds=data['Med']
|
83 |
proc = data['Proc']
|
84 |
out = data['Out']
|
85 |
+
charts = data['Chart']
|
86 |
cond= data['Cond']['fids']
|
87 |
|
88 |
#demographic
|
|
|
129 |
##########CHART#########
|
130 |
if (feat_chart):
|
131 |
if charts:
|
132 |
+
charts=charts['val']
|
133 |
feat=charts.keys()
|
134 |
chart_val=[charts[key] for key in feat]
|
135 |
chart_df=pd.DataFrame(np.zeros([interval,len(chartDict)]),columns=chartDict)
|