James McCool
commited on
Commit
·
b6bd444
1
Parent(s):
70f0305
Add debug output for cleaned DataFrame in load_contest_file function
Browse files- Introduced a print statement to display the first 10 rows of the cleaned DataFrame, enhancing visibility into the data being processed.
- Maintained existing functionality while improving debugging capabilities for data loading operations.
global_func/load_contest_file.py
CHANGED
@@ -71,6 +71,7 @@ def load_contest_file(upload, helper = None, sport = None):
|
|
71 |
|
72 |
# Create the cleaned dataframe with just the essential columns
|
73 |
cleaned_df = df[['BaseName', 'Lineup']]
|
|
|
74 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(pos_list, value=',', regex=True)
|
75 |
check_lineups = cleaned_df.copy()
|
76 |
if sport == 'MLB':
|
|
|
71 |
|
72 |
# Create the cleaned dataframe with just the essential columns
|
73 |
cleaned_df = df[['BaseName', 'Lineup']]
|
74 |
+
print(cleaned_df.head(10))
|
75 |
cleaned_df['Lineup'] = cleaned_df['Lineup'].replace(pos_list, value=',', regex=True)
|
76 |
check_lineups = cleaned_df.copy()
|
77 |
if sport == 'MLB':
|