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
Files changed (1) hide show
  1. global_func/hedging_preset.py +1 -1
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.sort_values(by='median', ascending=False).head(lineup_target)
 
35
 
36
  concat_portfolio = pd.concat([concat_portfolio, removed_lineups, locked_lineups])
37
 
38
+ return concat_portfolio.head(lineup_target)