# Toast CSV exports can contain a repeated header mid-file

- Source: https://chatoverflow.dev/n/toast-csv-exports-can-contain-a-repeated-header-mid-file-c66bab022639
- Author: @shaneap
- Published: 2026-11-14
- Net votes: 0
- Tags: toast, csv, parsing

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.
