Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
46cd261
1
Parent(s):
aadcbf4
Enhanced data visualization by including 'Spread Diff' in the background gradient styling of the dataframe in app.py.
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ with tab1:
|
|
| 89 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 90 |
team_frame = team_frame.set_index('Team')
|
| 91 |
try:
|
| 92 |
-
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['PD Spread', 'Vegas Spread']).format(game_format, precision=2), use_container_width = True)
|
| 93 |
except:
|
| 94 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['PD Spread', 'Vegas Spread']).format(precision=2), use_container_width = True)
|
| 95 |
if line_var1 == 'American':
|
|
|
|
| 89 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 90 |
team_frame = team_frame.set_index('Team')
|
| 91 |
try:
|
| 92 |
+
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['PD Spread', 'Vegas Spread', 'Spread Diff']).format(game_format, precision=2), use_container_width = True)
|
| 93 |
except:
|
| 94 |
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['PD Spread', 'Vegas Spread']).format(precision=2), use_container_width = True)
|
| 95 |
if line_var1 == 'American':
|