James McCool
commited on
Commit
·
0aa6048
1
Parent(s):
b071238
Update debug print statements in distribute_preset function to include finish and lower threshold values, and sort the top 10 entries by 'Finish_percentile' for enhanced traceability and clarity during execution.
Browse files
global_func/distribute_preset.py
CHANGED
@@ -19,7 +19,9 @@ def distribute_preset(portfolio: pd.DataFrame, lineup_target: int, exclude_cols:
|
|
19 |
working_portfolio = working_portfolio[working_portfolio['Finish_percentile'] >= lower_threshold]
|
20 |
working_portfolio = working_portfolio.sort_values(by='median', ascending = False)
|
21 |
working_portfolio = working_portfolio.reset_index(drop=True)
|
22 |
-
print(
|
|
|
|
|
23 |
curr_own_type_max = working_portfolio.loc[0, 'Weighted Own'] + (slack_var / 20 * working_portfolio.loc[0, 'Weighted Own'])
|
24 |
|
25 |
for i in range(1, len(working_portfolio)):
|
|
|
19 |
working_portfolio = working_portfolio[working_portfolio['Finish_percentile'] >= lower_threshold]
|
20 |
working_portfolio = working_portfolio.sort_values(by='median', ascending = False)
|
21 |
working_portfolio = working_portfolio.reset_index(drop=True)
|
22 |
+
print(finish_threshold)
|
23 |
+
print(lower_threshold)
|
24 |
+
print(working_portfolio[['Finish_percentile', 'Weighted Own']].sort_values(by='Finish_percentile', ascending=True).head(10))
|
25 |
curr_own_type_max = working_portfolio.loc[0, 'Weighted Own'] + (slack_var / 20 * working_portfolio.loc[0, 'Weighted Own'])
|
26 |
|
27 |
for i in range(1, len(working_portfolio)):
|