Spaces:
Running
Running
James McCool
commited on
Commit
·
b2155d1
1
Parent(s):
b8abbd7
try a different print spot
Browse files- src/streamlit_app.py +3 -2
src/streamlit_app.py
CHANGED
|
@@ -210,7 +210,7 @@ def init_baselines(data_req: str):
|
|
| 210 |
game_rot[col] = game_rot[col].fillna(0)
|
| 211 |
except Exception:
|
| 212 |
pass # Silently continue if stint stats unavailable
|
| 213 |
-
|
| 214 |
return gamelog_table, game_rot, timestamp
|
| 215 |
|
| 216 |
@st.cache_data(show_spinner=False)
|
|
@@ -647,7 +647,7 @@ if selected_tab == 'Game Rotations':
|
|
| 647 |
if st.button("Reset Data", key='reset5'):
|
| 648 |
st.cache_data.clear()
|
| 649 |
gamelog_table, game_rot, timestamp = init_baselines('all')
|
| 650 |
-
|
| 651 |
basic_cols = ['Player', 'Pos', 'Team', 'Opp', 'Season', 'Date', 'Matchup', 'Min']
|
| 652 |
basic_season_cols = ['Pos', 'Team', 'Min']
|
| 653 |
data_cols = ['team_score', 'opp_score', 'spread', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
|
|
@@ -669,6 +669,7 @@ if selected_tab == 'Game Rotations':
|
|
| 669 |
total_dates = gamelog_table.Date.values.tolist()
|
| 670 |
|
| 671 |
gamelog_table, game_rot, timestamp = init_baselines('all')
|
|
|
|
| 672 |
basic_cols = ['Player', 'Pos', 'Team', 'Team Abbr', 'Opp', 'Opp Abbr', 'Season', 'Date', 'Matchup', 'Min']
|
| 673 |
basic_season_cols = ['Pos', 'Team', 'Team Abbr', 'Min']
|
| 674 |
data_cols = ['team_score', 'opp_score', 'spread', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
|
|
|
|
| 210 |
game_rot[col] = game_rot[col].fillna(0)
|
| 211 |
except Exception:
|
| 212 |
pass # Silently continue if stint stats unavailable
|
| 213 |
+
|
| 214 |
return gamelog_table, game_rot, timestamp
|
| 215 |
|
| 216 |
@st.cache_data(show_spinner=False)
|
|
|
|
| 647 |
if st.button("Reset Data", key='reset5'):
|
| 648 |
st.cache_data.clear()
|
| 649 |
gamelog_table, game_rot, timestamp = init_baselines('all')
|
| 650 |
+
|
| 651 |
basic_cols = ['Player', 'Pos', 'Team', 'Opp', 'Season', 'Date', 'Matchup', 'Min']
|
| 652 |
basic_season_cols = ['Pos', 'Team', 'Min']
|
| 653 |
data_cols = ['team_score', 'opp_score', 'spread', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
|
|
|
|
| 669 |
total_dates = gamelog_table.Date.values.tolist()
|
| 670 |
|
| 671 |
gamelog_table, game_rot, timestamp = init_baselines('all')
|
| 672 |
+
st.write(game_rot['stint_id'].head(10))
|
| 673 |
basic_cols = ['Player', 'Pos', 'Team', 'Team Abbr', 'Opp', 'Opp Abbr', 'Season', 'Date', 'Matchup', 'Min']
|
| 674 |
basic_season_cols = ['Pos', 'Team', 'Team Abbr', 'Min']
|
| 675 |
data_cols = ['team_score', 'opp_score', 'spread', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
|