James McCool commited on
Commit
c6e3488
·
1 Parent(s): cf18cbb

Enhance player name formatting in load_contest_file.py

Browse files

- Added a step to strip whitespace from player names in the contest file loading process, ensuring cleaner and more consistent data handling.
- This improvement helps prevent potential issues related to formatting discrepancies in player names.

Files changed (1) hide show
  1. global_func/load_contest_file.py +2 -0
global_func/load_contest_file.py CHANGED
@@ -44,6 +44,8 @@ def load_contest_file(upload, type, helper = None, sport = None, portfolio = Non
44
  df['Own'] = df['Own'].str.replace('%', '').astype(float)
45
  except:
46
  df['Own'] = df['Own'].astype(float)
 
 
47
 
48
  print('Made it through ownership conversion')
49
 
 
44
  df['Own'] = df['Own'].str.replace('%', '').astype(float)
45
  except:
46
  df['Own'] = df['Own'].astype(float)
47
+
48
+ df['Player'] = df['Player'].str.strip()
49
 
50
  print('Made it through ownership conversion')
51