yuchenlin commited on
Commit
f95f8b0
1 Parent(s): 4c14ec2

only k=1000

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -185,6 +185,8 @@ def data_load(result_file):
185
  column_names_main = column_names.copy()
186
  # column_names_main.update({})
187
  main_ordered_columns = ORDERED_COLUMN_NAMES
 
 
188
  click_url = True
189
  # read json file from the result_file
190
  with open(result_file, "r") as f:
@@ -197,6 +199,7 @@ def data_load(result_file):
197
  except:
198
  pass
199
  original_df = pd.DataFrame(raw_data)
 
200
  original_df = post_processing(original_df, column_names_main, ordered_columns=main_ordered_columns, click_url=click_url, rank_column=RANKING_COLUMN)
201
  # print(original_df.columns)
202
 
 
185
  column_names_main = column_names.copy()
186
  # column_names_main.update({})
187
  main_ordered_columns = ORDERED_COLUMN_NAMES
188
+ # filter the data with Total Puzzles == 1000
189
+
190
  click_url = True
191
  # read json file from the result_file
192
  with open(result_file, "r") as f:
 
199
  except:
200
  pass
201
  original_df = pd.DataFrame(raw_data)
202
+ original_df = original_df[original_df["Total Puzzles"] == 1000]
203
  original_df = post_processing(original_df, column_names_main, ordered_columns=main_ordered_columns, click_url=click_url, rank_column=RANKING_COLUMN)
204
  # print(original_df.columns)
205