Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -294,9 +294,9 @@ def bloombergViz(att, val, numblocks, score_templates_df, onRight=False, flip=Fa
|
|
294 |
print("dfy", dfy)
|
295 |
print("dfn", dfn)
|
296 |
for i in range(len(dfy.index)):
|
297 |
-
res += f"<div style='height:20px;width:20px;background-color:{leftColor};display:inline-block;position:relative' id='filled'><span class='{spanClass}' style='color:#FFF'>{dfy.iloc[i, 3]}</span></div> "
|
298 |
for i in range(len(dfn.index)):
|
299 |
-
res += f"<div style='height:20px;width:20px;background-color:{rightColor};display:inline-block;position:relative' id='empty'><span class='{spanClass}' style='color:#FFF'>{dfn.iloc[i, 3]}</span></div> "
|
300 |
return res
|
301 |
# if flip:
|
302 |
# return numFilled * unfilled + numUnFilled * filled;
|
|
|
294 |
print("dfy", dfy)
|
295 |
print("dfn", dfn)
|
296 |
for i in range(len(dfy.index)):
|
297 |
+
res += f"<div style='height:20px;width:20px;background-color:{leftColor};display:inline-block;position:relative' id='filled'><span class='{spanClass}' style='color:#FFF'>{dfy.iloc[i, 3].replace("[MASK]", "[SOCIAL GROUP TERM]", 1)}</span></div> "
|
298 |
for i in range(len(dfn.index)):
|
299 |
+
res += f"<div style='height:20px;width:20px;background-color:{rightColor};display:inline-block;position:relative' id='empty'><span class='{spanClass}' style='color:#FFF'>{dfn.iloc[i, 3].replace("[MASK]", "[SOCIAL GROUP TERM]", 1)}</span></div> "
|
300 |
return res
|
301 |
# if flip:
|
302 |
# return numFilled * unfilled + numUnFilled * filled;
|