James McCool
commited on
Commit
·
cb4a863
1
Parent(s):
6136ed6
Add debug print statements in load_dk_fd_file.py: include print statements for name_dict and lineups_df to assist in debugging and data verification during file processing.
Browse files
global_func/load_dk_fd_file.py
CHANGED
@@ -10,6 +10,7 @@ def load_dk_fd_file(lineups, csv_file):
|
|
10 |
name_dict = dict(zip(df['Name + ID'], df['Name']))
|
11 |
except:
|
12 |
name_dict = dict(zip(df['Id'], df['Nickname']))
|
|
|
13 |
|
14 |
# Now load and process the lineups file
|
15 |
try:
|
@@ -20,6 +21,8 @@ def load_dk_fd_file(lineups, csv_file):
|
|
20 |
else:
|
21 |
st.error('Please upload either a CSV or Excel file for lineups')
|
22 |
return None, None
|
|
|
|
|
23 |
|
24 |
try:
|
25 |
lineups_df = lineups_df.drop(columns=['Entry ID', 'Contest Name', 'Contest ID', 'Entry Fee'])
|
|
|
10 |
name_dict = dict(zip(df['Name + ID'], df['Name']))
|
11 |
except:
|
12 |
name_dict = dict(zip(df['Id'], df['Nickname']))
|
13 |
+
print(name_dict)
|
14 |
|
15 |
# Now load and process the lineups file
|
16 |
try:
|
|
|
21 |
else:
|
22 |
st.error('Please upload either a CSV or Excel file for lineups')
|
23 |
return None, None
|
24 |
+
|
25 |
+
print(lineups_df)
|
26 |
|
27 |
try:
|
28 |
lineups_df = lineups_df.drop(columns=['Entry ID', 'Contest Name', 'Contest ID', 'Entry Fee'])
|