James McCool commited on
Commit
a4045d8
·
1 Parent(s): 759c5af

How to incorporate them in MaxVar.

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1166,7 +1166,12 @@ def parse_portfolio_on_mapped_min_max(portfolio, map_dict, map_key, min_max_valu
1166
  counts_per_row = (stat_df < min_max_value).sum(axis=1)
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)
 
1166
  counts_per_row = (stat_df < min_max_value).sum(axis=1)
1167
 
1168
  # Create mask for rows that meet the total_threshold
1169
+ if min_max_var == 'Greater than':
1170
+ meets_threshold = counts_per_row >= total_threshold
1171
+ elif min_max_var == 'Less than':
1172
+ meets_threshold = counts_per_row <= total_threshold
1173
+ elif min_max_var == 'Equal to':
1174
+ meets_threshold = counts_per_row == total_threshold
1175
 
1176
  print(counts_per_row)
1177
  print(meets_threshold)