Spaces:
Running
Running
Update app.py
Browse files
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",['
|
194 |
),
|
195 |
|
196 |
ui.panel_main(ui.tags.h3(""),
|
@@ -366,7 +366,7 @@ def server(input, output, session):
|
|
366 |
# 'Roster%': '{:.0%}',
|
367 |
# },)
|
368 |
|
369 |
-
df_style_bang = top_d_score.head(input.top_n()).style.background_gradient(cmap=co,vmin=0,vmax=1, subset=[x for x in cols if x.endswith('PP%')]).set_properties(**{'border': '3 px'},overwrite=False).set_table_styles([{
|
370 |
'selector': 'caption',
|
371 |
'props': [
|
372 |
('color', ''),
|
|
|
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(""),
|
|
|
366 |
# 'Roster%': '{:.0%}',
|
367 |
# },)
|
368 |
|
369 |
+
df_style_bang = top_d_score[cols].head(input.top_n()).style.background_gradient(cmap=co,vmin=0,vmax=1, subset=[x for x in cols if x.endswith('PP%')]).set_properties(**{'border': '3 px'},overwrite=False).set_table_styles([{
|
370 |
'selector': 'caption',
|
371 |
'props': [
|
372 |
('color', ''),
|