James McCool
commited on
Commit
·
8125d78
1
Parent(s):
1bd74a1
Update player column selection logic in distribute_preset.py to reference the correct portfolio DataFrame. This change ensures that the player filtering process accurately reflects the current portfolio structure, enhancing the overall functionality of the distribution process.
Browse files
global_func/distribute_preset.py
CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
|
|
3 |
def distribute_preset(portfolio: pd.DataFrame, lineup_target: int, exclude_cols: list):
|
4 |
|
5 |
excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Similarity Score']
|
6 |
-
player_columns = [col for col in
|
7 |
for slack_var in range(1, 20):
|
8 |
init_portfolio = pd.DataFrame(columns=portfolio.columns)
|
9 |
|
|
|
3 |
def distribute_preset(portfolio: pd.DataFrame, lineup_target: int, exclude_cols: list):
|
4 |
|
5 |
excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Similarity Score']
|
6 |
+
player_columns = [col for col in portfolio.columns if col not in excluded_cols]
|
7 |
for slack_var in range(1, 20):
|
8 |
init_portfolio = pd.DataFrame(columns=portfolio.columns)
|
9 |
|