jiehou commited on
Commit
dba5aeb
1 Parent(s): 939e3f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -155,7 +155,7 @@ def data_process(layout, step, desk, seatid, color, instructor):
155
  backup_filename = f'data_statistics_{current_time}.csv'
156
  shutil.move(file_path, backup_filename)
157
  # update file
158
- temp_stat = raw_data[~raw_data['step'].str.contains('Step 2: Update the locations of centroids (only for centroid student to select)')]
159
  temp_stat.to_csv(file_path, index=False)
160
  print("Data udpated")
161
  print("temp_stat: ",temp_stat)
@@ -204,7 +204,7 @@ def data_process(layout, step, desk, seatid, color, instructor):
204
  backup_filename = f'data_statistics_{current_time}.csv'
205
  shutil.move(file_path, backup_filename)
206
  # update file
207
- temp_stat = raw_data[~raw_data['step'].str.contains('Step 3: Find the closest centroid & update cluster label assignments (for all participator)')]
208
  temp_stat.to_csv(file_path, index=False)
209
  print("Data udpated")
210
  print("temp_stat: ",temp_stat)
 
155
  backup_filename = f'data_statistics_{current_time}.csv'
156
  shutil.move(file_path, backup_filename)
157
  # update file
158
+ temp_stat = raw_data[raw_data['step'] != 'Step 2: Update the locations of centroids (only for centroid student to select)']
159
  temp_stat.to_csv(file_path, index=False)
160
  print("Data udpated")
161
  print("temp_stat: ",temp_stat)
 
204
  backup_filename = f'data_statistics_{current_time}.csv'
205
  shutil.move(file_path, backup_filename)
206
  # update file
207
+ temp_stat = raw_data[raw_data['step'] != 'Step 3: Find the closest centroid & update cluster label assignments (for all participator)']
208
  temp_stat.to_csv(file_path, index=False)
209
  print("Data udpated")
210
  print("temp_stat: ",temp_stat)