Beta · version 0.7.4 · commands and the JSON format may still change.
First and last rows
first and last keep the first or the last records of the file, in file
order.
tabalyst sample customers.csv --sample-method first --rows 1000tabalyst sample customers.csv --sample-method last --rows 1000Key points
Section titled “Key points”- Use it when you only need the start or the end of the file.
- Size:
--rowsor--percent, exactly one. - Cost: one reading of the file.
- Seed: none. The rows are kept in file order, so
--seedis an error with these methods (exit code 2). - Output:
customers.sample.csvbeside the source.
Limits
Section titled “Limits”- The rows are not chosen to represent the file. For the proportions use a random or stratified sample; for the rare cases use a smart sample.
--seed,--field,--max-strata,--yesand--no-htmlare errors with these methods (exit code 2).
See Tabalyst Sample for sizes, output locations and CSV formats.