Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,10 +36,6 @@ gcservice_account = init_conn()
|
|
| 36 |
|
| 37 |
NBA_Data = 'https://docs.google.com/spreadsheets/d/1Yq0vGriWK-bS79e-bD6_u9pqrYE6Yrlbb_wEkmH-ot0/edit#gid=1808117109'
|
| 38 |
|
| 39 |
-
percentages_format = {'Pts% Boost': '{:.2%}', 'Reb% Boost': '{:.2%}', 'Ast% Boost': '{:.2%}', '3p% Boost': '{:.2%}',
|
| 40 |
-
'Stl Boost%': '{:.2%}', 'Blk Boost%': '{:.2%}', 'TOV Boost%': '{:.2%}', 'FPPM Boost': '{:.2%}',
|
| 41 |
-
'Team FPPM Boost': '{:.2%}'}
|
| 42 |
-
|
| 43 |
@st.cache_resource(ttl = 600)
|
| 44 |
def init_baselines():
|
| 45 |
sh = gcservice_account.open_by_url(NBA_Data)
|
|
@@ -200,7 +196,7 @@ with col2:
|
|
| 200 |
mime='text/csv',
|
| 201 |
)
|
| 202 |
|
| 203 |
-
elif split_var1 == 'Slate
|
| 204 |
table_display = proj_medians_table[proj_medians_table['Proj'] >= proj_var1[0]]
|
| 205 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 206 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|
|
|
|
| 36 |
|
| 37 |
NBA_Data = 'https://docs.google.com/spreadsheets/d/1Yq0vGriWK-bS79e-bD6_u9pqrYE6Yrlbb_wEkmH-ot0/edit#gid=1808117109'
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
@st.cache_resource(ttl = 600)
|
| 40 |
def init_baselines():
|
| 41 |
sh = gcservice_account.open_by_url(NBA_Data)
|
|
|
|
| 196 |
mime='text/csv',
|
| 197 |
)
|
| 198 |
|
| 199 |
+
elif split_var1 == 'Slate specific':
|
| 200 |
table_display = proj_medians_table[proj_medians_table['Proj'] >= proj_var1[0]]
|
| 201 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 202 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|