James McCool
commited on
Commit
·
3ffd739
1
Parent(s):
4399601
Remove redundant condition in exposure_spread function to streamline player comparison logic, enhancing clarity in exposure evaluations.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -339,7 +339,6 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 339 |
comparable_players = projections_df[
|
| 340 |
(projections_df['salary'] >= comp_salary_low) &
|
| 341 |
(projections_df['salary'] <= comp_salary_high + (salary_max - working_frame['salary'][row])) &
|
| 342 |
-
(projections_df['median'] >= comp_projection_low) &
|
| 343 |
(projections_df['position'].apply(lambda x: has_position_overlap(x, comp_player_position)))
|
| 344 |
]
|
| 345 |
|
|
|
|
| 339 |
comparable_players = projections_df[
|
| 340 |
(projections_df['salary'] >= comp_salary_low) &
|
| 341 |
(projections_df['salary'] <= comp_salary_high + (salary_max - working_frame['salary'][row])) &
|
|
|
|
| 342 |
(projections_df['position'].apply(lambda x: has_position_overlap(x, comp_player_position)))
|
| 343 |
]
|
| 344 |
|