Skip to content

Commit

Permalink
remove ten cheapest option, obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
markushal committed Nov 14, 2023
1 parent 380fae5 commit 2e9f3fe
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/ptxboa_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2e9f3fe

Please sign in to comment.