James McCool commited on
Commit
72c43b1
·
1 Parent(s): 13bd645
Files changed (1) hide show
  1. global_func/exposure_spread.py +1 -0
global_func/exposure_spread.py CHANGED
@@ -7,6 +7,7 @@ import math
7
  #### Take that list of players and create a list that can be accessed for random insertion into the portfolio
8
  #### Find the player and the amount of rows that contain them and then find an exposure rate which is the percentage of total rows
9
  #### Use the exposure target argument and try to replace the player from as many rows as necessary to be at or just under the target
 
10
 
11
  def check_nba_position_eligibility(column_name, player_positions):
12
  """
 
7
  #### Take that list of players and create a list that can be accessed for random insertion into the portfolio
8
  #### Find the player and the amount of rows that contain them and then find an exposure rate which is the percentage of total rows
9
  #### Use the exposure target argument and try to replace the player from as many rows as necessary to be at or just under the target
10
+ #### makes sure to check if the player is eligible for the position before replacing them
11
 
12
  def check_nba_position_eligibility(column_name, player_positions):
13
  """