James McCool commited on
Commit
6c2ea99
·
1 Parent(s): 928ec6e

Add debug output for specific player in load_contest_file.py

Browse files

- Introduced print statements to display data for the player 'Luis Torrens' during the contest file loading process for enhanced debugging.
- Maintained existing functionality while improving visibility into player-specific data handling.

Files changed (1) hide show
  1. global_func/load_contest_file.py +4 -1
global_func/load_contest_file.py CHANGED
@@ -48,6 +48,8 @@ def load_contest_file(upload, helper = None, sport = None):
48
 
49
  print('Made it through helper')
50
 
 
 
51
  contest_names = df.Player.unique()
52
  helper_names = helper_df.Player.unique()
53
 
@@ -60,11 +62,12 @@ def load_contest_file(upload, helper = None, sport = None):
60
  )
61
  if match:
62
  contest_match_dict[names] = match[0]
63
- print(names, match[0])
64
  else:
65
  contest_match_dict[names] = names
66
 
67
  df_helper['Player'] = df_helper['Player'].map(contest_match_dict)
 
 
68
 
69
  # Create separate dataframes for different player attributes
70
  if helper is not None:
 
48
 
49
  print('Made it through helper')
50
 
51
+ print(df_helper[df_helper['Player'] == 'Luis Torrens'])
52
+
53
  contest_names = df.Player.unique()
54
  helper_names = helper_df.Player.unique()
55
 
 
62
  )
63
  if match:
64
  contest_match_dict[names] = match[0]
 
65
  else:
66
  contest_match_dict[names] = names
67
 
68
  df_helper['Player'] = df_helper['Player'].map(contest_match_dict)
69
+
70
+ print(df_helper[df_helper['Player'] == 'Luis Torrens'])
71
 
72
  # Create separate dataframes for different player attributes
73
  if helper is not None: