Multichem commited on
Commit
fcbf3e4
1 Parent(s): bcdcf6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- player_stats = player_stats.set_index('Player')
112
- player_stats = player_stats.sort_values(by='Fantasy', ascending=False)
113
- st.dataframe(player_stats.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),
 
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),