rjiang12 commited on
Commit
666e002
·
1 Parent(s): 3ba7702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -286,9 +286,9 @@ def bloombergViz(att, val, numblocks, score_templates_df, flip=False):
286
  print("dfy", dfy)
287
  print("dfn", dfn)
288
  for i in range(len(dfy.index)):
289
- res += f"<div style='height:20px;width:20px;background-color:#555;display:inline-block' id='filled'><span class='tooltiptext' style='color:#FFF'>{dfy.iloc[i, 3]}</span></div> "
290
  for i in range(len(dfn.index)):
291
- res += f"<div style='height:20px;width:20px;background-color:#999;display:inline-block' id='empty'><span class='tooltiptext' style='color:#FFF'>{dfn.iloc[i, 3]}</span></div> "
292
  return res
293
  # if flip:
294
  # return numFilled * unfilled + numUnFilled * filled;
 
286
  print("dfy", dfy)
287
  print("dfn", dfn)
288
  for i in range(len(dfy.index)):
289
+ res += f"<div style='height:20px;width:20px;background-color:#555;display:inline-block;position:relative' id='filled'><span class='tooltiptext' style='color:#FFF'>{dfy.iloc[i, 3]}</span></div> "
290
  for i in range(len(dfn.index)):
291
+ res += f"<div style='height:20px;width:20px;background-color:#999;display:inline-block;position:relative' id='empty'><span class='tooltiptext' style='color:#FFF'>{dfn.iloc[i, 3]}</span></div> "
292
  return res
293
  # if flip:
294
  # return numFilled * unfilled + numUnFilled * filled;