Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,11 +97,11 @@ with tab1:
|
|
| 97 |
team_frame = game_model
|
| 98 |
if line_var1 == 'Percentage':
|
| 99 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 100 |
-
team_frame = team_frame.set_index('
|
| 101 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), use_container_width = True)
|
| 102 |
if line_var1 == 'American':
|
| 103 |
team_frame = team_frame[['Team', 'Opp', 'Win Line', 'Vegas Line', 'Line Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 104 |
-
team_frame = team_frame.set_index('
|
| 105 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 106 |
|
| 107 |
st.download_button(
|
|
|
|
| 97 |
team_frame = game_model
|
| 98 |
if line_var1 == 'Percentage':
|
| 99 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 100 |
+
team_frame = team_frame.set_index('Team')
|
| 101 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), use_container_width = True)
|
| 102 |
if line_var1 == 'American':
|
| 103 |
team_frame = team_frame[['Team', 'Opp', 'Win Line', 'Vegas Line', 'Line Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 104 |
+
team_frame = team_frame.set_index('Team')
|
| 105 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 106 |
|
| 107 |
st.download_button(
|