robertou2 commited on
Commit
5946172
1 Parent(s): 64d59b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -55,6 +55,14 @@ def preprocess(text):
55
  text=" ".join(text.split())
56
  return text
57
 
 
 
 
 
 
 
 
 
58
 
59
  st.set_page_config(layout="wide")
60
  colT1,colT2 = st.columns([2,8])
 
55
  text=" ".join(text.split())
56
  return text
57
 
58
+ def bg_colour_col (col):
59
+ colour = '#ffff00'
60
+ return ['background-color: %s' % colour
61
+ if col.name=='Total' or i==4 # color column `Total` or row `4`
62
+ else ''
63
+ for i,x in col.iteritems()]
64
+
65
+ df.style.apply(bg_colour_col)
66
 
67
  st.set_page_config(layout="wide")
68
  colT1,colT2 = st.columns([2,8])