James McCool
commited on
Commit
·
717655e
1
Parent(s):
2c35cf4
Add debug print statement in distribute_preset.py to display the top 10 rows of the working portfolio. This change aids in verifying the filtering process and ensures the accuracy of player selection during distribution.
Browse files
global_func/distribute_preset.py
CHANGED
@@ -60,6 +60,7 @@ def distribute_preset(portfolio: pd.DataFrame, lineup_target: int, exclude_cols:
|
|
60 |
lambda row: not any(player in list(row) for player in player_out), axis=1
|
61 |
)
|
62 |
working_portfolio = working_portfolio[remove_mask]
|
|
|
63 |
working_portfolio = working_portfolio.sort_values(by='median', ascending=False).reset_index(drop=True)
|
64 |
curr_own_type_max = working_portfolio.loc[0, 'Similarity Score'] + (slack_var / 20 * working_portfolio.loc[0, 'Similarity Score'])
|
65 |
|
|
|
60 |
lambda row: not any(player in list(row) for player in player_out), axis=1
|
61 |
)
|
62 |
working_portfolio = working_portfolio[remove_mask]
|
63 |
+
print(working_portfolio.head(10))
|
64 |
working_portfolio = working_portfolio.sort_values(by='median', ascending=False).reset_index(drop=True)
|
65 |
curr_own_type_max = working_portfolio.loc[0, 'Similarity Score'] + (slack_var / 20 * working_portfolio.loc[0, 'Similarity Score'])
|
66 |
|