A tab-delimited export has a single header line. The file is newline-terminated and contains 38 physical lines (equivalently, wc -l reports 38). One program name is enclosed in quotation marks and contains an embedded line break, so that one record occupies two physical lines; every other record occupies one.
The parser is correctly configured to recognise the header and to honour the file's quoting. How many data rows should the imported table contain?
Give your answer in rows.
A documented import maps the file's conventions into an analysis-ready table without silently changing records.
Unlock full course notes by signing up
Importing Data: difficulty 3
A survey file is imported with a parser whose default encoding on your machine is Latin-1 (ISO-8859-1). The delimiter, the header and the row count are all read correctly, but every accented value is altered in the same way. The city that should read Montréal is imported as Montréal, and Québec is imported as Québec. In each case one accented character has been replaced by exactly two characters.
What encoding should be declared when the file is read again? Give the encoding's name in its hyphenated form, as it would be passed to the parser (for example, ISO-8859-1).