Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -172,6 +172,11 @@ def convert_df_to_csv(df):
|
|
172 |
|
173 |
gamelog_table = init_baselines()
|
174 |
data_cols = gamelog_table.columns.drop(['Player', 'Team', 'Position', 'Date', 'TOI'])
|
|
|
|
|
|
|
|
|
|
|
175 |
indv_teams = gamelog_table.drop_duplicates(subset='Team')
|
176 |
total_teams = indv_teams.Team.values.tolist()
|
177 |
indv_players = gamelog_table.drop_duplicates(subset='Player')
|
@@ -226,7 +231,7 @@ with tab1:
|
|
226 |
with col2:
|
227 |
if split_var1 == 'Season Logs':
|
228 |
choose_cols = st.container()
|
229 |
-
choose_cols.multiselect('Which stats would you like to view?', options =
|
230 |
display = st.container()
|
231 |
gamelog_table = gamelog_table[gamelog_table['Date'] >= low_date]
|
232 |
gamelog_table = gamelog_table[gamelog_table['Date'] <= high_date]
|
|
|
172 |
|
173 |
gamelog_table = init_baselines()
|
174 |
data_cols = gamelog_table.columns.drop(['Player', 'Team', 'Position', 'Date', 'TOI'])
|
175 |
+
season_data_cols = ['TOI', 'Goals', 'Total Assists', 'First Assists', 'Second Assists', 'Total Points',
|
176 |
+
'IPP', 'Shots', 'ixG', 'iCF', 'iFF', 'iSCF', 'iHDCF', 'Rush Attempts', 'Rebounds Created', 'PIM', 'Total Penalties',
|
177 |
+
'Minor', 'Major', 'Penalties Drawn', 'Giveaways', 'Takeaways', 'Hits', 'Hits Taken', 'Shots Blocked', 'Faceoffs Won',
|
178 |
+
'Faceoffs Lost', 'dk_shots_bonus', 'dk_blocks_bonus', 'dk_goals_bonus', 'dk_points_bonus',
|
179 |
+
'dk_fantasy', 'fd_fantasy']
|
180 |
indv_teams = gamelog_table.drop_duplicates(subset='Team')
|
181 |
total_teams = indv_teams.Team.values.tolist()
|
182 |
indv_players = gamelog_table.drop_duplicates(subset='Player')
|
|
|
231 |
with col2:
|
232 |
if split_var1 == 'Season Logs':
|
233 |
choose_cols = st.container()
|
234 |
+
choose_cols.multiselect('Which stats would you like to view?', options = season_data_cols, default = season_data_cols, key='col_display')
|
235 |
display = st.container()
|
236 |
gamelog_table = gamelog_table[gamelog_table['Date'] >= low_date]
|
237 |
gamelog_table = gamelog_table[gamelog_table['Date'] <= high_date]
|