Spaces:
Running
Running
James McCool
commited on
Commit
·
5ef09f7
1
Parent(s):
ba104a9
Enhance MLB ROO display with styled dataframe and gradient coloring
Browse files
app.py
CHANGED
@@ -100,4 +100,5 @@ with tab2:
|
|
100 |
elif site_var == "Fanduel":
|
101 |
disp_file = FD_MLB_ROO_Build(projections)
|
102 |
|
103 |
-
|
|
|
|
100 |
elif site_var == "Fanduel":
|
101 |
disp_file = FD_MLB_ROO_Build(projections)
|
102 |
|
103 |
+
if disp_file is not None:
|
104 |
+
st.dataframe(disp_file.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=1000, use_container_width = True)
|