martinakaduc commited on
Commit
80961f0
1 Parent(s): 4af8ee7

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +4 -1
  2. data_loader.py +5 -3
app.py CHANGED
@@ -42,4 +42,7 @@ if __name__ == "__main__":
42
  result_sheet = resutls[result_id][dataset]
43
 
44
  # Visualize the data stored as a pandas dataframe
45
- st.dataframe(result_sheet)
 
 
 
 
42
  result_sheet = resutls[result_id][dataset]
43
 
44
  # Visualize the data stored as a pandas dataframe
45
+ st.dataframe(
46
+ result_sheet,
47
+ hide_index=True,
48
+ )
data_loader.py CHANGED
@@ -156,15 +156,17 @@ def load_data(file_name):
156
  dataset_name = datasets[task_id][dataset_id]
157
 
158
  dataset_data = sheet_data.iloc[row_ids[i] + 1: row_ids[i + 1]]
159
- dataset_data = dataset_data.fillna('')
160
- # dataset_data = dataset_data.dropna(axis=1, how='all')
161
- # dataset_data = dataset_data.dropna(axis=0, how='all')
162
  header = sheet_data.iloc[0]
163
  header[0] = "Models"
164
 
165
  # Create new pandas dataframe
166
  dataset_data = pd.DataFrame(
167
  dataset_data.values, columns=header)
 
 
 
 
168
  results_by_dataset[dataset_name] = dataset_data
169
 
170
  results[f"{task_id}-{setting_id}"] = results_by_dataset
 
156
  dataset_name = datasets[task_id][dataset_id]
157
 
158
  dataset_data = sheet_data.iloc[row_ids[i] + 1: row_ids[i + 1]]
159
+ dataset_data = dataset_data.fillna('-')
 
 
160
  header = sheet_data.iloc[0]
161
  header[0] = "Models"
162
 
163
  # Create new pandas dataframe
164
  dataset_data = pd.DataFrame(
165
  dataset_data.values, columns=header)
166
+ # column_dtypes = {'Models': 'string'}
167
+ # for column in header[1:]:
168
+ # column_dtypes[column] = 'float'
169
+ # dataset_data = dataset_data.astype(column_dtypes)
170
  results_by_dataset[dataset_name] = dataset_data
171
 
172
  results[f"{task_id}-{setting_id}"] = results_by_dataset