Data Pipes

Truncate dataset to its first rows.

Usage

head [[-n] COUNT]

COUNT
    Number of rows to truncate to. If this option is
    omitted, it defaults to 10.

Note we allow you to prefix COUNT with -n to ensure compatability with standard unix head.

Examples

Return the first 10 rows.

/csv/head/?url=https://raw.github.com/datasets/bond-yields-uk-10y/master/annual.csv

Return the first 20 rows.

/csv/head 20/?url=https://raw.github.com/datasets/bond-yields-uk-10y/master/annual.csv