Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan committed May 5, 2024
1 parent 4e09a76 commit 368b78c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion app/pages/2_Metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
currency = st.selectbox(
"Currency",
currencies,
index=currencies.index(currency) if currency else 0,
index=currencies.index(currency)
if currency
else currencies.index("EUR - Euro"),
)

units = [
Expand Down
2 changes: 1 addition & 1 deletion app/pages/5_Clean_Tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def update_df_csv_to_save() -> None:
),
)

st.data_editor(
st.session_state.tables[st.session_state["algorithm_name"]] = st.data_editor(
st.session_state.tables[st.session_state["algorithm_name"]],
num_rows="dynamic",
on_change=update_df_csv_to_save,
Expand Down
7 changes: 0 additions & 7 deletions country_by_country/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ def gather_tables(
"No Extract " + str(i + 1) for i in range(tables[i].shape[1])
]
break
for label, content in tables[i].items():
if (
content.dtype == "object"
): # Check if the column contains string data
tables[i][label] = tables[i][label].replace("", None)
tables[i][label] = tables[i][label].str.replace(".", "")
tables[i][label] = tables[i][label].str.replace(",", ".")
tables_by_name[asset["type"] + "_" + str(i)] = tables[i]

return tables_by_name
Expand Down

0 comments on commit 368b78c

Please sign in to comment.