James McCool
commited on
Commit
·
9387594
1
Parent(s):
0aa6048
Fix lower threshold calculation in distribute_preset function to ensure accurate filtering based on finishing range. This change enhances the clarity and correctness of the threshold logic.
Browse files
global_func/distribute_preset.py
CHANGED
@@ -7,7 +7,7 @@ def distribute_preset(portfolio: pd.DataFrame, lineup_target: int, exclude_cols:
|
|
7 |
|
8 |
for finishing_range in range(1, 20):
|
9 |
finish_threshold = (finishing_range / 100)
|
10 |
-
lower_threshold = ((
|
11 |
rows_to_drop = []
|
12 |
working_portfolio = portfolio.copy()
|
13 |
if finishing_range == 1:
|
|
|
7 |
|
8 |
for finishing_range in range(1, 20):
|
9 |
finish_threshold = (finishing_range / 100)
|
10 |
+
lower_threshold = ((finishing_range - 1) / 100)
|
11 |
rows_to_drop = []
|
12 |
working_portfolio = portfolio.copy()
|
13 |
if finishing_range == 1:
|