Spaces:
Running
Running
James McCool
commited on
Commit
·
ba2158d
1
Parent(s):
8ecd6e0
Handle potential undefined dataframe in MLB ROO display
Browse files
app.py
CHANGED
@@ -108,5 +108,8 @@ with tab2:
|
|
108 |
elif site_var_sb == "Fanduel":
|
109 |
disp_file = FD_MLB_ROO_Build(projections, floor_var_sb, ceiling_var_sb, std_var_sb, distribution_type_sb)
|
110 |
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
108 |
elif site_var_sb == "Fanduel":
|
109 |
disp_file = FD_MLB_ROO_Build(projections, floor_var_sb, ceiling_var_sb, std_var_sb, distribution_type_sb)
|
110 |
|
111 |
+
try:
|
112 |
+
if 'disp_file' in locals():
|
113 |
+
st.dataframe(disp_file.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=1000, use_container_width = True)
|
114 |
+
except:
|
115 |
+
pass
|