nesticot commited on
Commit
db59c68
·
1 Parent(s): 68a734b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,7 +190,7 @@ app_ui = ui.page_fluid(
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",['Position','Roster%'],multiple=True,selectize=True),
194
  ),
195
 
196
  ui.panel_main(ui.tags.h3(""),
@@ -333,7 +333,7 @@ def server(input, output, session):
333
  test = test.rename(columns={'display_position':'Position'})
334
 
335
 
336
- top_d_score = test[(test.Team==input.team_id())].sort_values(by=['L'+str(n_1)+' PP%'],ascending=False).reset_index(drop=True)
337
  top_d_score = top_d_score.head(min(len(top_d_score),top_n))
338
 
339
 
 
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",['Position','Roster%'],multiple=True,selectize=True),
194
  ),
195
 
196
  ui.panel_main(ui.tags.h3(""),
 
333
  test = test.rename(columns={'display_position':'Position'})
334
 
335
 
336
+ top_d_score = test[(test.Team==input.team_id())].sort_values(by=['L'+str(n_1)+' PP%'],ascending=False).reset_index(drop=True).dropna(axis='columns')
337
  top_d_score = top_d_score.head(min(len(top_d_score),top_n))
338
 
339