May-29-2019, 09:26 PM
(May-22-2019, 09:16 PM)mcgrim Wrote: ValueError: invalid literal for int() with base 10: '\n'That could be the end of the file, with a trailing newline. Maybe adding a check for whitespace-only lines will help? Something like:
for line in file: if line.strip(): parts = line.split() orig_date.append(parts[0]) orig_time.append(parts[1]) movements.append((parts[5]))