Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ with tab1:
|
|
79 |
odds_table, overall_roo, win_roo, timestamp, loss_roo, map_proj_3 = pull_baselines()
|
80 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
81 |
odds_display = odds_table
|
82 |
-
st.dataframe(odds_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
83 |
st.download_button(
|
84 |
label="Export Tables",
|
85 |
data=convert_df_to_csv(odds_display),
|
@@ -125,8 +125,8 @@ with tab3:
|
|
125 |
team_var2 = st.multiselect('View specific team?', options = map_proj_3['Team'].unique(), key = 'stat_teamvar')
|
126 |
map_stat_display = map_proj_3
|
127 |
if team_var2:
|
128 |
-
|
129 |
-
st.dataframe(
|
130 |
st.download_button(
|
131 |
label="Export Projections",
|
132 |
data=convert_df_to_csv(map_stat_display),
|
|
|
79 |
odds_table, overall_roo, win_roo, timestamp, loss_roo, map_proj_3 = pull_baselines()
|
80 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
81 |
odds_display = odds_table
|
82 |
+
st.dataframe(odds_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(odds_format, precision=2), use_container_width = True)
|
83 |
st.download_button(
|
84 |
label="Export Tables",
|
85 |
data=convert_df_to_csv(odds_display),
|
|
|
125 |
team_var2 = st.multiselect('View specific team?', options = map_proj_3['Team'].unique(), key = 'stat_teamvar')
|
126 |
map_stat_display = map_proj_3
|
127 |
if team_var2:
|
128 |
+
map_stat_display = map_stat_display[display['Team'].isin(team_var2)]
|
129 |
+
st.dataframe(map_stat_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(stat_format, precision=2), use_container_width = True)
|
130 |
st.download_button(
|
131 |
label="Export Projections",
|
132 |
data=convert_df_to_csv(map_stat_display),
|