James McCool
commited on
Commit
·
c443fd6
1
Parent(s):
1c84812
Add debug print statement to load_file function
Browse filesIncluded a print statement to display the first 10 rows of the DataFrame after loading a file. This change aids in debugging and ensures that the data is being loaded correctly before further processing.
- global_func/load_file.py +1 -0
global_func/load_file.py
CHANGED
|
@@ -103,6 +103,7 @@ def load_file(upload, site_var, type_var, sport_var, upload_type):
|
|
| 103 |
st.error('Please upload either a CSV or Excel file')
|
| 104 |
return None, None
|
| 105 |
|
|
|
|
| 106 |
for col in df.columns:
|
| 107 |
if isinstance(col, str) and "Unnamed" in col:
|
| 108 |
df = df.drop(columns=[col])
|
|
|
|
| 103 |
st.error('Please upload either a CSV or Excel file')
|
| 104 |
return None, None
|
| 105 |
|
| 106 |
+
print(df.head(10))
|
| 107 |
for col in df.columns:
|
| 108 |
if isinstance(col, str) and "Unnamed" in col:
|
| 109 |
df = df.drop(columns=[col])
|