Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,9 +108,9 @@ with tab2:
|
|
108 |
elif split_var1 == 'All':
|
109 |
team_var1 = player_stats.Team.values.tolist()
|
110 |
player_stats = player_stats[player_stats['Team'].isin(team_var1)]
|
111 |
-
|
112 |
-
|
113 |
-
st.dataframe(
|
114 |
st.download_button(
|
115 |
label="Export Prop Model",
|
116 |
data=convert_df_to_csv(player_stats),
|
|
|
108 |
elif split_var1 == 'All':
|
109 |
team_var1 = player_stats.Team.values.tolist()
|
110 |
player_stats = player_stats[player_stats['Team'].isin(team_var1)]
|
111 |
+
player_stats_disp = player_stats.set_index('Player')
|
112 |
+
player_stats_disp = player_stats_disp.sort_values(by='Fantasy', ascending=False)
|
113 |
+
st.dataframe(player_stats_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
114 |
st.download_button(
|
115 |
label="Export Prop Model",
|
116 |
data=convert_df_to_csv(player_stats),
|