James McCool
commited on
Commit
·
c5323ea
1
Parent(s):
5fdf496
Correct player filtering logic in exposure_spread function by changing equality check to inequality for exposure_player, improving 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 |
-
comparable_players = comparable_players[
|
| 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)
|