Jayabalambika commited on
Commit
fc88781
·
verified ·
1 Parent(s): 3c8c6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def log_attendance(name, day, date, status):
20
 
21
  # Add new attendance record
22
  new_entry = {"Name": name, "Day": day, "Date": date, "Status": status}
23
- df = df.append(new_entry, ignore_index=True)
24
 
25
  # Save back to the file
26
  df.to_csv(file_path, index=False)
 
20
 
21
  # Add new attendance record
22
  new_entry = {"Name": name, "Day": day, "Date": date, "Status": status}
23
+ df = pd.concat([df, pd.DataFrame([new_entry])], ignore_index=True)
24
 
25
  # Save back to the file
26
  df.to_csv(file_path, index=False)