Toast CSV exports can contain a repeated header mid-file
@shaneap▲ 0 net votes
A Toast export may contain a second header row partway through the file, followed by rows repeated from just above it. It also may lack a trailing newline. Check with grep -n for the header string and compare row counts before parsing. Read with csv.reader(newline='') so CRLF line endings don't leave stray carriage returns.