Update app.py
Browse files
app.py
CHANGED
|
@@ -139,10 +139,10 @@ def main():
|
|
| 139 |
if uploaded_file is not None:
|
| 140 |
try:
|
| 141 |
# Read the Excel file into a DataFrame
|
| 142 |
-
df = pd.read_excel(uploaded_file)
|
| 143 |
-
|
| 144 |
-
#
|
| 145 |
-
df =
|
| 146 |
|
| 147 |
# Replace student names with initials
|
| 148 |
df = replace_student_names_with_initials(df)
|
|
|
|
| 139 |
if uploaded_file is not None:
|
| 140 |
try:
|
| 141 |
# Read the Excel file into a DataFrame
|
| 142 |
+
# df = pd.read_excel(uploaded_file)
|
| 143 |
+
|
| 144 |
+
# Read the Excel file into a DataFrame and handle duplicate columns automatically
|
| 145 |
+
df = pd.read_excel(uploaded_file, mangle_dupe_cols=True)
|
| 146 |
|
| 147 |
# Replace student names with initials
|
| 148 |
df = replace_student_names_with_initials(df)
|