1.7.10 Other separators🔗ℹ

The post converts the TSV to CSV for data-frame. #:separator takes any ASCII character but a line break or the quote character. Read with the default comma, the TSV is one column named after the whole header line, which Python’s read_csv returns; read-csv raises instead and names the separator to pass:

> (read-csv "nycflights-sample.tsv")

read-csv: nycflights-sample.tsv reads as one column whose

header splits on #\tab into 19 fields; pass #:separator

#\tab, or #:separator #\, to keep one column

See Reading options for the other reading options.