Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
3c80a10
1
Parent(s):
18eaa68
Add debug print statements in exposure_spread function to log player rows and locations for improved troubleshooting during player replacement process.
Browse files
global_func/exposure_spread.py
CHANGED
@@ -40,6 +40,8 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
40 |
# for each row, replace with random choice from comparable player list
|
41 |
for row in player_rows.index:
|
42 |
player_location = np.where(working_frame.iloc[row] == exposure_player)
|
|
|
|
|
43 |
working_frame.at[player_location[0], player_location[1]] = random.choice(comparable_player_list)
|
44 |
|
45 |
return working_frame
|
|
|
40 |
# for each row, replace with random choice from comparable player list
|
41 |
for row in player_rows.index:
|
42 |
player_location = np.where(working_frame.iloc[row] == exposure_player)
|
43 |
+
print(working_frame.iloc[row])
|
44 |
+
print(player_location)
|
45 |
working_frame.at[player_location[0], player_location[1]] = random.choice(comparable_player_list)
|
46 |
|
47 |
return working_frame
|