Spaces:
Running
Running
James McCool
commited on
Commit
·
1c3dbe0
1
Parent(s):
5a19305
okay that should work
Browse files- src/streamlit_app.py +3 -2
src/streamlit_app.py
CHANGED
|
@@ -20,6 +20,7 @@ percentages_format = {'Pts% Boost': '{:.2%}', 'Reb% Boost': '{:.2%}', 'Ast% Boos
|
|
| 20 |
team_macro_format = {'FGM%': '{:.2%}', 'FG3M%': '{:.2%}', 'FTM%': '{:.2%}'}
|
| 21 |
|
| 22 |
macro_minutes_cols = ['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']
|
|
|
|
| 23 |
|
| 24 |
st.markdown("""
|
| 25 |
<style>
|
|
@@ -248,13 +249,13 @@ if selected_tab == 'Team Macro Tables':
|
|
| 248 |
team_macro_display = team_off_frame.loc[:, team_off_frame.columns.isin(macro_minutes_cols)]
|
| 249 |
team_macro_display = team_macro_display[['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']]
|
| 250 |
elif display_type2 == 'Total':
|
| 251 |
-
team_macro_display = team_off_frame.loc[:, ~team_off_frame.columns.isin(
|
| 252 |
elif table_var2 == 'Team Defense':
|
| 253 |
if display_type2 == 'Minutes':
|
| 254 |
team_macro_display = team_def_frame.loc[:, team_def_frame.columns.isin(macro_minutes_cols)]
|
| 255 |
team_macro_display = team_macro_display[['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']]
|
| 256 |
elif display_type2 == 'Total':
|
| 257 |
-
team_macro_display = team_def_frame.loc[:, ~team_def_frame.columns.isin(
|
| 258 |
elif table_var2 == 'Team Combo':
|
| 259 |
team_macro_display = team_combo_frame
|
| 260 |
elif table_var2 == 'Team Matchups':
|
|
|
|
| 20 |
team_macro_format = {'FGM%': '{:.2%}', 'FG3M%': '{:.2%}', 'FTM%': '{:.2%}'}
|
| 21 |
|
| 22 |
macro_minutes_cols = ['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']
|
| 23 |
+
remove_minutes_cols = ['MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']
|
| 24 |
|
| 25 |
st.markdown("""
|
| 26 |
<style>
|
|
|
|
| 249 |
team_macro_display = team_off_frame.loc[:, team_off_frame.columns.isin(macro_minutes_cols)]
|
| 250 |
team_macro_display = team_macro_display[['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']]
|
| 251 |
elif display_type2 == 'Total':
|
| 252 |
+
team_macro_display = team_off_frame.loc[:, ~team_off_frame.columns.isin(remove_minutes_cols)]
|
| 253 |
elif table_var2 == 'Team Defense':
|
| 254 |
if display_type2 == 'Minutes':
|
| 255 |
team_macro_display = team_def_frame.loc[:, team_def_frame.columns.isin(macro_minutes_cols)]
|
| 256 |
team_macro_display = team_macro_display[['Team', 'Games', 'MIN', 'FGA/m', 'FG3A/m', 'FTA/m', 'PTS/m', 'REB/m', 'AST/m', 'STL/m', 'BLK/m', 'Fantasy/m', 'FD_Fantasy/m']]
|
| 257 |
elif display_type2 == 'Total':
|
| 258 |
+
team_macro_display = team_def_frame.loc[:, ~team_def_frame.columns.isin(remove_minutes_cols)]
|
| 259 |
elif table_var2 == 'Team Combo':
|
| 260 |
team_macro_display = team_combo_frame
|
| 261 |
elif table_var2 == 'Team Matchups':
|