James McCool
commited on
Commit
·
a01df7b
1
Parent(s):
de2ad46
Fix lineup replacement logic in load_contest_file function
Browse files- Updated the method for replacing position indicators in the cleaned dataframe from `str.replace` to `replace`, enhancing the accuracy of lineup processing.
- This change contributes to ongoing efforts to refine data handling and improve user experience within the application.
global_func/load_contest_file.py
CHANGED
@@ -41,7 +41,7 @@ def load_contest_file(upload, sport):
|
|
41 |
|
42 |
# Create the cleaned dataframe with just the essential columns
|
43 |
cleaned_df = df[['BaseName', 'EntryCount', 'Lineup']]
|
44 |
-
cleaned_df['Lineup'] = cleaned_df['Lineup'].
|
45 |
|
46 |
# Get unique entry names
|
47 |
entry_list = list(set(df['BaseName']))
|
|
|
41 |
|
42 |
# Create the cleaned dataframe with just the essential columns
|
43 |
cleaned_df = df[['BaseName', 'EntryCount', 'Lineup']]
|
44 |
+
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(pos_list, ',')
|
45 |
|
46 |
# Get unique entry names
|
47 |
entry_list = list(set(df['BaseName']))
|