From 2e9f3fe32a77c937f523c0cb4c7a2e192b888d87 Mon Sep 17 00:00:00 2001 From: Markus Haller Date: Tue, 14 Nov 2023 09:21:37 +0100 Subject: [PATCH] remove ten cheapest option, obsolete --- app/ptxboa_functions.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/app/ptxboa_functions.py b/app/ptxboa_functions.py index b93f4172..b178e02d 100644 --- a/app/ptxboa_functions.py +++ b/app/ptxboa_functions.py @@ -677,22 +677,15 @@ def display_costs( df_res = df_costs.copy() # select filter: - if titlestring == "region": - option_list = ["All", "Ten cheapest", "Manual select"] - else: - option_list = ["All", "Manual select"] - show_which_data = st.radio( "Select elements to display:", - option_list, + ["All", "Manual select"], index=0, key=f"show_which_data_{key}", ) # apply filter: - if show_which_data == "Ten cheapest": - df_res = df_res.nsmallest(10, "Total") - elif show_which_data == "Manual select": + if show_which_data == "Manual select": ind_select = st.multiselect( "Select regions:", df_res.index.values,