2020-05-13 10:03:29 +02:00
|
|
|
# headers
|
|
|
|
|
|
|
|
Use `headers` to turn the first row of a table into meaningful column names.
|
|
|
|
|
|
|
|
As demonstrated in the following example, it's particularly handy when working with spreadsheets.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```shell
|
2020-06-23 20:21:47 +02:00
|
|
|
> open sample_data.ods | get SalesOrders
|
2020-05-13 10:03:29 +02:00
|
|
|
────┬────────────┬─────────┬──────────┬─────────┬─────────┬───────────┬───────────
|
|
|
|
# │ Column0 │ Column1 │ Column2 │ Column3 │ Column4 │ Column5 │ Column6
|
|
|
|
────┼────────────┼─────────┼──────────┼─────────┼─────────┼───────────┼───────────
|
|
|
|
0 │ OrderDate │ Region │ Rep │ Item │ Units │ Unit Cost │ Total
|
|
|
|
1 │ 2018-01-06 │ East │ Jones │ Pencil │ 95.0000 │ 1.9900 │ 189.0500
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
2020-05-13 10:03:29 +02:00
|
|
|
|
2020-06-23 20:21:47 +02:00
|
|
|
```shell
|
|
|
|
> open sample_data.ods | get SalesOrders | headers
|
2020-05-13 10:03:29 +02:00
|
|
|
────┬────────────┬─────────┬──────────┬─────────┬─────────┬───────────┬───────────
|
|
|
|
# │ OrderDate │ Region │ Rep │ Item │ Units │ Unit Cost │ Total
|
|
|
|
────┼────────────┼─────────┼──────────┼─────────┼─────────┼───────────┼───────────
|
|
|
|
0 │ 2018-01-06 │ East │ Jones │ Pencil │ 95.0000 │ 1.9900 │ 189.0500
|
|
|
|
1 │ 2018-01-23 │ Central │ Kivell │ Binder │ 50.0000 │ 19.9900 │ 999.4999
|
|
|
|
```
|