James McCool
commited on
Commit
·
10aa498
1
Parent(s):
a96ebae
ping
Browse files
global_func/load_contest_file.py
CHANGED
|
@@ -116,7 +116,7 @@ def load_contest_file(upload, type, helper = None, sport = None, portfolio = Non
|
|
| 116 |
elif sport == 'NHL':
|
| 117 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(['C ', ' C ', 'G ', ' G ', 'W ', ' W ', ' UTIL ', 'UTIL ', 'D ', ' D ',], value=',', regex=True)
|
| 118 |
elif sport == 'NBA':
|
| 119 |
-
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(['C ', '
|
| 120 |
elif sport == 'MLB':
|
| 121 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF '], value=',', regex=True)
|
| 122 |
elif sport == 'MMA':
|
|
|
|
| 116 |
elif sport == 'NHL':
|
| 117 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(['C ', ' C ', 'G ', ' G ', 'W ', ' W ', ' UTIL ', 'UTIL ', 'D ', ' D ',], value=',', regex=True)
|
| 118 |
elif sport == 'NBA':
|
| 119 |
+
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(['C ', ' G ', ' F ', ' UTIL ', ' PG ', ' SG ', ' SF ', ' PF '], value=',', regex=True)
|
| 120 |
elif sport == 'MLB':
|
| 121 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace([' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF '], value=',', regex=True)
|
| 122 |
elif sport == 'MMA':
|