Spaces:
Build error
Build error
James McCool commited on
Commit ·
759c5af
1
Parent(s): 08d5b57
with some prints
Browse files
app.py
CHANGED
|
@@ -1167,6 +1167,9 @@ def parse_portfolio_on_mapped_min_max(portfolio, map_dict, map_key, min_max_valu
|
|
| 1167 |
|
| 1168 |
# Create mask for rows that meet the total_threshold
|
| 1169 |
meets_threshold = counts_per_row >= total_threshold
|
|
|
|
|
|
|
|
|
|
| 1170 |
|
| 1171 |
# Apply Keep/Remove logic
|
| 1172 |
if min_max_choice == 'Keep':
|
|
@@ -2582,14 +2585,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2582 |
min_max_total = st.number_input("A total of:", value=0.0, min_value=0.0, step=1.0)
|
| 2583 |
min_max_filter = st.selectbox("Based on:", options=min_max_parse_options)
|
| 2584 |
above_below = st.selectbox("Above or Below:", options=['Above', 'Below'], index=0)
|
| 2585 |
-
|
| 2586 |
-
min_max_value = st.number_input("This value:", value=20.0, min_value=0.0, step=1.0)
|
| 2587 |
-
elif min_max_filter == 'Ownership':
|
| 2588 |
-
min_max_value = st.number_input("This value:", value=20.0, min_value=0.0, step=1.0)
|
| 2589 |
-
elif min_max_filter == 'Salary':
|
| 2590 |
-
min_max_value = st.number_input("This value:", value=4000.0, min_value=0.0, step=100.0)
|
| 2591 |
-
elif min_max_filter == 'Grid':
|
| 2592 |
-
min_max_value = st.number_input("This value:", value=10.0, min_value=0.0, step=1.0)
|
| 2593 |
submitted_col, export_col = st.columns(2)
|
| 2594 |
with submitted_col:
|
| 2595 |
reg_submitted = st.form_submit_button("Portfolio")
|
|
|
|
| 1167 |
|
| 1168 |
# Create mask for rows that meet the total_threshold
|
| 1169 |
meets_threshold = counts_per_row >= total_threshold
|
| 1170 |
+
|
| 1171 |
+
print(counts_per_row)
|
| 1172 |
+
print(meets_threshold)
|
| 1173 |
|
| 1174 |
# Apply Keep/Remove logic
|
| 1175 |
if min_max_choice == 'Keep':
|
|
|
|
| 2585 |
min_max_total = st.number_input("A total of:", value=0.0, min_value=0.0, step=1.0)
|
| 2586 |
min_max_filter = st.selectbox("Based on:", options=min_max_parse_options)
|
| 2587 |
above_below = st.selectbox("Above or Below:", options=['Above', 'Below'], index=0)
|
| 2588 |
+
min_max_value = st.number_input("This value:", value=0.0, min_value=0.0, step=1.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2589 |
submitted_col, export_col = st.columns(2)
|
| 2590 |
with submitted_col:
|
| 2591 |
reg_submitted = st.form_submit_button("Portfolio")
|