ianpan commited on
Commit
88f716d
·
verified ·
1 Parent(s): 2543663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -52,10 +52,12 @@ def main(files):
52
 
53
  # remove stuff at the bottom
54
  try:
55
- last_row = schedule.iloc[:, 0].tolist().index("Schedule Notes:")
 
 
 
56
  except ValueError:
57
- last_row = schedule.iloc[:, 0].tolist().index("Phone Numbers")
58
-
59
 
60
  schedule = schedule.iloc[:last_row].reset_index(drop=True)
61
 
 
52
 
53
  # remove stuff at the bottom
54
  try:
55
+ try:
56
+ last_row = schedule.iloc[:, 0].tolist().index("Schedule Notes:")
57
+ except ValueError:
58
+ last_row = schedule.iloc[:, 0].tolist().index("Phone Numbers")
59
  except ValueError:
60
+ last_row = len(schedule) + 1
 
61
 
62
  schedule = schedule.iloc[:last_row].reset_index(drop=True)
63