James McCool
commited on
Commit
·
1d9fb5a
1
Parent(s):
0fb666c
Comment out player mapping and deduplication in load_contest_file.py to prevent unintended data alterations. This change allows for flexibility in data processing while maintaining the existing structure for future adjustments.
Browse files
global_func/load_contest_file.py
CHANGED
@@ -84,9 +84,9 @@ def load_contest_file(upload, type, helper = None, sport = None):
|
|
84 |
contest_match_dict[key] = value
|
85 |
|
86 |
df_helper['Player'] = df_helper['Player'].map(contest_match_dict)
|
87 |
-
df['Player'] = df['Player'].map(contest_match_dict)
|
88 |
df_helper = df_helper.drop_duplicates(subset='Player', keep='first')
|
89 |
-
df = df.drop_duplicates(subset='Player', keep='first')
|
90 |
|
91 |
# Create separate dataframes for different player attributes
|
92 |
if helper is not None:
|
|
|
84 |
contest_match_dict[key] = value
|
85 |
|
86 |
df_helper['Player'] = df_helper['Player'].map(contest_match_dict)
|
87 |
+
# df['Player'] = df['Player'].map(contest_match_dict)
|
88 |
df_helper = df_helper.drop_duplicates(subset='Player', keep='first')
|
89 |
+
# df = df.drop_duplicates(subset='Player', keep='first')
|
90 |
|
91 |
# Create separate dataframes for different player attributes
|
92 |
if helper is not None:
|