James McCool commited on
Commit
bd643f8
·
1 Parent(s): b7058ba

Add debug output for sport variable in load_contest_file function

Browse files

- Introduced a print statement to display the current sport being processed, enhancing debugging capabilities during contest file loading.
- Maintained existing functionality while improving visibility into the sport-specific data handling.

Files changed (1) hide show
  1. global_func/load_contest_file.py +1 -0
global_func/load_contest_file.py CHANGED
@@ -80,6 +80,7 @@ def load_contest_file(upload, helper = None, sport = None):
80
  cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' F ', 'F '], value=',', regex=True)
81
  elif sport == 'GOLF':
82
  cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' G ', 'G '], value=',', regex=True)
 
83
  print(cleaned_df.head(10))
84
  check_lineups = cleaned_df.copy()
85
  if sport == 'MLB':
 
80
  cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' F ', 'F '], value=',', regex=True)
81
  elif sport == 'GOLF':
82
  cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' G ', 'G '], value=',', regex=True)
83
+ print(sport)
84
  print(cleaned_df.head(10))
85
  check_lineups = cleaned_df.copy()
86
  if sport == 'MLB':