vives commited on
Commit
61ecf6c
·
1 Parent(s): da14c31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def clean_dict(x):
14
  return x.replace("'", '"')
15
  if xl1 is not None :
16
  #assert that the first few columns are the same
17
- df1 = pd.read_excel(xl1, sheet_name= "{threshold} Threshold")
18
  #first convert strings into dicts
19
  df1["Matched KPs"] = df1["Matched KPs"].apply(clean_dict)
20
  df1["Matched KPs"] = df1["Matched KPs"].apply(lambda x: ast.literal_eval(x))
 
14
  return x.replace("'", '"')
15
  if xl1 is not None :
16
  #assert that the first few columns are the same
17
+ df1 = pd.read_excel(xl1, sheet_name= f"{threshold} Threshold")
18
  #first convert strings into dicts
19
  df1["Matched KPs"] = df1["Matched KPs"].apply(clean_dict)
20
  df1["Matched KPs"] = df1["Matched KPs"].apply(lambda x: ast.literal_eval(x))