Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
313 |
-
|
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):
|