James McCool
commited on
Commit
·
5fdf496
1
Parent(s):
bce8275
Refine player filtering logic in exposure_spread function by replacing existing_players check with a direct comparison to exposure_player, enhancing clarity and accuracy in player selection during exposure calculations.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -339,7 +339,7 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 339 |
|
| 340 |
# Filter out players that are already present in this row
|
| 341 |
# existing_players = set(current_row_data.values)
|
| 342 |
-
|
| 343 |
|
| 344 |
# Create a list of comparable players
|
| 345 |
print(lineups_to_remove)
|
|
|
|
| 339 |
|
| 340 |
# Filter out players that are already present in this row
|
| 341 |
# existing_players = set(current_row_data.values)
|
| 342 |
+
comparable_players = comparable_players[~comparable_players['player_names'] == exposure_player]
|
| 343 |
|
| 344 |
# Create a list of comparable players
|
| 345 |
print(lineups_to_remove)
|