Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,10 +146,10 @@ with tab1:
|
|
146 |
mime='text/csv',
|
147 |
)
|
148 |
with st.container():
|
149 |
-
if 'data_export_display' in st.
|
150 |
st.dataframe(st.session_state.data_export_display.style.format(precision=2), height=500, use_container_width=True)
|
151 |
with st.container():
|
152 |
-
if 'data_export_freq' in st.
|
153 |
st.dataframe(st.session_state.data_export_freq.style.format(percentages_format, precision=2), height=500, use_container_width=True)
|
154 |
|
155 |
elif site_var1 == 'Fanduel':
|
@@ -172,10 +172,10 @@ with tab1:
|
|
172 |
mime='text/csv',
|
173 |
)
|
174 |
with st.container():
|
175 |
-
if 'data_export_display' in st.
|
176 |
st.dataframe(st.session_state.data_export_display.style.format(precision=2), height=500, use_container_width=True)
|
177 |
with st.container():
|
178 |
-
if 'data_export_freq' in st.
|
179 |
st.dataframe(st.session_state.data_export_freq.style.format(percentages_format, precision=2), height=500, use_container_width=True)
|
180 |
|
181 |
with tab2:
|
|
|
146 |
mime='text/csv',
|
147 |
)
|
148 |
with st.container():
|
149 |
+
if 'data_export_display' in st.session_state:
|
150 |
st.dataframe(st.session_state.data_export_display.style.format(precision=2), height=500, use_container_width=True)
|
151 |
with st.container():
|
152 |
+
if 'data_export_freq' in st.session_state:
|
153 |
st.dataframe(st.session_state.data_export_freq.style.format(percentages_format, precision=2), height=500, use_container_width=True)
|
154 |
|
155 |
elif site_var1 == 'Fanduel':
|
|
|
172 |
mime='text/csv',
|
173 |
)
|
174 |
with st.container():
|
175 |
+
if 'data_export_display' in st.session_state:
|
176 |
st.dataframe(st.session_state.data_export_display.style.format(precision=2), height=500, use_container_width=True)
|
177 |
with st.container():
|
178 |
+
if 'data_export_freq' in st.session_state:
|
179 |
st.dataframe(st.session_state.data_export_freq.style.format(percentages_format, precision=2), height=500, use_container_width=True)
|
180 |
|
181 |
with tab2:
|