thbndi commited on
Commit
30fa87d
1 Parent(s): 3e4900f

Update dataset_utils.py

Browse files
Files changed (1) hide show
  1. dataset_utils.py +3 -0
dataset_utils.py CHANGED
@@ -116,6 +116,9 @@ def concat_data(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds,feat
116
  combined_df = pd.concat([features,oneh],ignore_index=True).fillna(0)
117
  combined_oneh=combined_df.sum().to_frame().T
118
  cond_df=combined_oneh
 
 
 
119
 
120
  ##########PROC#########
121
  if (feat_proc):
 
116
  combined_df = pd.concat([features,oneh],ignore_index=True).fillna(0)
117
  combined_oneh=combined_df.sum().to_frame().T
118
  cond_df=combined_oneh
119
+ for c in cond_df.columns :
120
+ if c not in features:
121
+ cond_df=cond_df.drop(columns=[c])
122
 
123
  ##########PROC#########
124
  if (feat_proc):