Skip to content

Commit

Permalink
Merge pull request #93 from agoenergy/86-implement-comparison-sheets
Browse files Browse the repository at this point in the history
remove ten cheapest option, obsolete
  • Loading branch information
markushal authored Nov 14, 2023
2 parents 3eca430 + 2e9f3fe commit e78931b
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 e78931b

Please sign in to comment.