Update dataset_utils.py
Browse files- dataset_utils.py +2 -2
dataset_utils.py
CHANGED
@@ -272,8 +272,8 @@ def generate_deep(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds,fe
|
|
272 |
demo["ethnicity"].replace(eth_vocab, inplace=True)
|
273 |
demo["insurance"].replace(ins_vocab, inplace=True)
|
274 |
demo["Age"].replace(age_vocab, inplace=True)
|
275 |
-
demo=demo["gender","ethnicity","insurance","Age"]
|
276 |
-
demo = demo.values
|
277 |
|
278 |
return stat, demo, meds, charts, out, proc, lab, y
|
279 |
|
|
|
272 |
demo["ethnicity"].replace(eth_vocab, inplace=True)
|
273 |
demo["insurance"].replace(ins_vocab, inplace=True)
|
274 |
demo["Age"].replace(age_vocab, inplace=True)
|
275 |
+
demo=demo[["gender","ethnicity","insurance","Age"]]
|
276 |
+
demo = demo.values[0]
|
277 |
|
278 |
return stat, demo, meds, charts, out, proc, lab, y
|
279 |
|