tttoaster commited on
Commit
62dd8c2
1 Parent(s): af398d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -392,7 +392,7 @@ with block:
392
  selected_columns = [item for item in TASK_V2_INFO if item in selected_columns]
393
  present_columns = MODEL_INFO_V2 + selected_columns
394
  updated_data = updated_data[present_columns]
395
- updated_data = updated_data.sort_values(by="Avg. P1", ascending=False)
396
  updated_headers = present_columns
397
  update_datatype = [DATA_TITILE_V2_TYPE[COLUMN_V2_NAMES.index(x)] for x in updated_headers]
398
 
@@ -489,7 +489,7 @@ with block:
489
  selected_columns = [item for item in TASK_INFO if item in selected_columns]
490
  present_columns = MODEL_INFO + selected_columns
491
  updated_data = updated_data[present_columns]
492
- updated_data = updated_data.sort_values(by="Avg. All", ascending=False)
493
  updated_headers = present_columns
494
  update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
495
 
 
392
  selected_columns = [item for item in TASK_V2_INFO if item in selected_columns]
393
  present_columns = MODEL_INFO_V2 + selected_columns
394
  updated_data = updated_data[present_columns]
395
+ updated_data = updated_data.sort_values(by=selected_columns[0], ascending=False)
396
  updated_headers = present_columns
397
  update_datatype = [DATA_TITILE_V2_TYPE[COLUMN_V2_NAMES.index(x)] for x in updated_headers]
398
 
 
489
  selected_columns = [item for item in TASK_INFO if item in selected_columns]
490
  present_columns = MODEL_INFO + selected_columns
491
  updated_data = updated_data[present_columns]
492
+ updated_data = updated_data.sort_values(by=selected_columns[0], ascending=False)
493
  updated_headers = present_columns
494
  update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
495