AMKhakbaz commited on
Commit
796fcb3
·
verified ·
1 Parent(s): 5268010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -309,11 +309,9 @@ def z_test_data(df):
309
  p2 = df.iloc[i, j]
310
  p_value = z_testes(n1, n2, p1, p2)
311
  styles.iloc[i, j] = p_value
312
- #if pd.notnull(p_value) and p_value <= 0.05:
313
- # styles.iloc[i, j] = p_value #'background-color: lightgreen'
314
-
315
- st.write(styles)
316
-
317
  return df.style.apply(lambda _: styles, axis=None)
318
 
319
  def t_test_data(df):
 
309
  p2 = df.iloc[i, j]
310
  p_value = z_testes(n1, n2, p1, p2)
311
  styles.iloc[i, j] = p_value
312
+ if pd.notnull(p_value) and p_value <= 0.05:
313
+ styles.iloc[i, j] = 'background-color: lightgreen'
314
+
 
 
315
  return df.style.apply(lambda _: styles, axis=None)
316
 
317
  def t_test_data(df):