Akankshg commited on
Commit
01940b1
·
verified ·
1 Parent(s): 2950403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -1017,7 +1017,6 @@ if analysis_option == 'Machine Learning':
1017
  token = os.environ["HUGGING_FACE_HUB_TOKEN"]
1018
  local_file_1 = hf_hub_download(repo_id=repo_id, filename=filename_1,repo_type="dataset", token=token)
1019
  filtered_data = pd.read_parquet(local_file_1)
1020
- st.write(filtered_data.columns)
1021
  if filtered_data['key_lab2'].notna().any():
1022
  column_list = ['PatientID', 'VisitID', 'GroupedICD'] + list(filtered_data['key_lab2'].iloc[0])
1023
  pivot_data = pd.pivot_table(filtered_data, values='ComponentValue', index=['PatientID', 'VisitID', 'GroupedICD'], columns='ComponentName', aggfunc=lambda x: ', '.join(map(str, x)))
 
1017
  token = os.environ["HUGGING_FACE_HUB_TOKEN"]
1018
  local_file_1 = hf_hub_download(repo_id=repo_id, filename=filename_1,repo_type="dataset", token=token)
1019
  filtered_data = pd.read_parquet(local_file_1)
 
1020
  if filtered_data['key_lab2'].notna().any():
1021
  column_list = ['PatientID', 'VisitID', 'GroupedICD'] + list(filtered_data['key_lab2'].iloc[0])
1022
  pivot_data = pd.pivot_table(filtered_data, values='ComponentValue', index=['PatientID', 'VisitID', 'GroupedICD'], columns='ComponentName', aggfunc=lambda x: ', '.join(map(str, x)))