Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -210,6 +210,7 @@ with tab2:
|
|
210 |
hold_display = load_roo_model(csgo_wins)
|
211 |
elif model_choice == 'Losses':
|
212 |
hold_display = load_roo_model(csgo_losses)
|
|
|
213 |
display = hold_display.set_index('Player')
|
214 |
export_display = display
|
215 |
export_display['Own'] = export_display['Own'] *100
|
@@ -237,6 +238,7 @@ with tab3:
|
|
237 |
hold_display = load_bo3_proj_model(csgo_bo3)
|
238 |
elif gametype_choice == 'Best of 5':
|
239 |
hold_display = load_bo5_proj_model(csgo_bo5)
|
|
|
240 |
display = hold_display.set_index('Player')
|
241 |
if team_var2:
|
242 |
display = display[display['Team'].isin(team_var2)]
|
@@ -254,7 +256,6 @@ with tab4:
|
|
254 |
# i.e. clear values from both square and cube
|
255 |
st.cache_data.clear()
|
256 |
hold_display = load_slate_baselines(player_baselines)
|
257 |
-
hold_display['Own'] = hold_display['Own'] /100
|
258 |
display = hold_display.set_index('Player')
|
259 |
st.dataframe(display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
260 |
st.download_button(
|
|
|
210 |
hold_display = load_roo_model(csgo_wins)
|
211 |
elif model_choice == 'Losses':
|
212 |
hold_display = load_roo_model(csgo_losses)
|
213 |
+
hold_display['Own'] = hold_display['Own'] / 100
|
214 |
display = hold_display.set_index('Player')
|
215 |
export_display = display
|
216 |
export_display['Own'] = export_display['Own'] *100
|
|
|
238 |
hold_display = load_bo3_proj_model(csgo_bo3)
|
239 |
elif gametype_choice == 'Best of 5':
|
240 |
hold_display = load_bo5_proj_model(csgo_bo5)
|
241 |
+
hold_display['Own'] = hold_display['Own'] / 100
|
242 |
display = hold_display.set_index('Player')
|
243 |
if team_var2:
|
244 |
display = display[display['Team'].isin(team_var2)]
|
|
|
256 |
# i.e. clear values from both square and cube
|
257 |
st.cache_data.clear()
|
258 |
hold_display = load_slate_baselines(player_baselines)
|
|
|
259 |
display = hold_display.set_index('Player')
|
260 |
st.dataframe(display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
261 |
st.download_button(
|