James McCool
commited on
Commit
·
8d3abd2
1
Parent(s):
fac0157
Enhance lineup generation in hedging_preset.py by adding debug print statements for removed and team lineups. This update improves visibility into the lineup processing and ensures all relevant lineups are concatenated for final output.
Browse files
global_func/hedging_preset.py
CHANGED
|
@@ -69,8 +69,10 @@ def hedging_preset(portfolio: pd.DataFrame, lineup_target: int, projections_file
|
|
| 69 |
|
| 70 |
removed_lineups = small_field_preset(removed_df, math.ceil(lineup_target / (list_size * 3)), excluded_cols)
|
| 71 |
print(len(removed_lineups))
|
|
|
|
| 72 |
team_lineups = large_field_preset(teams_df, math.ceil(lineup_target / (list_size * 3)), excluded_cols)
|
| 73 |
print(len(team_lineups))
|
| 74 |
-
|
|
|
|
| 75 |
|
| 76 |
return concat_portfolio.head(lineup_target)
|
|
|
|
| 69 |
|
| 70 |
removed_lineups = small_field_preset(removed_df, math.ceil(lineup_target / (list_size * 3)), excluded_cols)
|
| 71 |
print(len(removed_lineups))
|
| 72 |
+
print(removed_lineups.head(10))
|
| 73 |
team_lineups = large_field_preset(teams_df, math.ceil(lineup_target / (list_size * 3)), excluded_cols)
|
| 74 |
print(len(team_lineups))
|
| 75 |
+
print(team_lineups.head(10))
|
| 76 |
+
concat_portfolio = pd.concat([concat_portfolio, removed_lineups, team_lineups])
|
| 77 |
|
| 78 |
return concat_portfolio.head(lineup_target)
|