James McCool
commited on
Commit
·
433242b
1
Parent(s):
2bbbfdd
Remove sorting by 'median' in hedging_preset.py to simplify the return of the top lineups based on the specified target. This change streamlines the output and focuses on the desired number of lineups without additional sorting criteria.
Browse files
global_func/hedging_preset.py
CHANGED
@@ -35,4 +35,4 @@ def hedging_preset(portfolio: pd.DataFrame, lineup_target: int, projections_file
|
|
35 |
|
36 |
concat_portfolio = pd.concat([concat_portfolio, removed_lineups, locked_lineups])
|
37 |
|
38 |
-
return concat_portfolio.
|
|
|
35 |
|
36 |
concat_portfolio = pd.concat([concat_portfolio, removed_lineups, locked_lineups])
|
37 |
|
38 |
+
return concat_portfolio.head(lineup_target)
|