Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -185,11 +185,12 @@ app_ui = ui.page_fluid(
|
|
185 |
|
186 |
ui.panel_sidebar(
|
187 |
#ui.input_date_range("date_range_id", "Date range input",start = statcast_df.game_date.min(), end = statcast_df.game_date.max()),
|
188 |
-
ui.input_select("team_id", "Select Team",
|
189 |
ui.input_numeric("n_1", "Last Games x", value=1),
|
190 |
ui.input_numeric("n_2", "Last Games y", value=0),
|
191 |
ui.input_numeric("n_3", "Last Games z", value=0),
|
192 |
ui.input_numeric("top_n", "Show top 'n'", value=10),
|
|
|
193 |
),
|
194 |
|
195 |
ui.panel_main(ui.tags.h3(""),
|
@@ -340,6 +341,10 @@ def server(input, output, session):
|
|
340 |
|
341 |
cols = top_d_score.columns.tolist();
|
342 |
|
|
|
|
|
|
|
|
|
343 |
top_d_score['Deployment'] = "PP2"
|
344 |
top_d_score['Deployment'][0:5] = "PP1"
|
345 |
|
|
|
185 |
|
186 |
ui.panel_sidebar(
|
187 |
#ui.input_date_range("date_range_id", "Date range input",start = statcast_df.game_date.min(), end = statcast_df.game_date.max()),
|
188 |
+
ui.input_select("team_id", "Select Team",['Postion','Roster%'],multiple=True,Selectize=True),
|
189 |
ui.input_numeric("n_1", "Last Games x", value=1),
|
190 |
ui.input_numeric("n_2", "Last Games y", value=0),
|
191 |
ui.input_numeric("n_3", "Last Games z", value=0),
|
192 |
ui.input_numeric("top_n", "Show top 'n'", value=10),
|
193 |
+
ui.input_select("ignore_id", "Remove Columns",team_dict,width=1,size=1,selected='ANA'),
|
194 |
),
|
195 |
|
196 |
ui.panel_main(ui.tags.h3(""),
|
|
|
341 |
|
342 |
cols = top_d_score.columns.tolist();
|
343 |
|
344 |
+
for i in input.ignore_id():
|
345 |
+
cols.remove(i)
|
346 |
+
|
347 |
+
|
348 |
top_d_score['Deployment'] = "PP2"
|
349 |
top_d_score['Deployment'][0:5] = "PP1"
|
350 |
|