First pass at updating all documentation formatting and cleaning up output of examples (#2031)

This commit is contained in:
Joseph T. Lyons
2020-06-23 14:21:47 -04:00
committed by GitHub
parent d095cb91e4
commit 053bd926ec
81 changed files with 1069 additions and 679 deletions

View File

@@ -6,7 +6,7 @@ Returns unique rows or values from a dataset.
Given a file `test.csv`
```
```csv
first_name,last_name,rusty_at,type
Andrés,Robalino,10/11/2013,A
Andrés,Robalino,10/11/2013,A
@@ -14,7 +14,7 @@ Jonathan,Turner,10/12/2013,B
Yehuda,Katz,10/11/2013,A
```
```
```shell
> `open test.csv | uniq`
━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━
# │ first_name │ last_name │ rusty_at │ type
@@ -25,10 +25,10 @@ Yehuda,Katz,10/11/2013,A
━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━
```
```
```shell
> `open test.csv | get type | uniq`
━━━┯━━━━━━━━━
# │ <value>
# │
───┼─────────
0 │ A
1 │ B
@@ -36,14 +36,15 @@ Yehuda,Katz,10/11/2013,A
```
### Counting
`--count` or `-c` is the flag to output a `count` column.
```
```shell
> `open test.csv | get type | uniq -c`
───┬───────┬───────
# │ value │ count
# │ value │ count
───┼───────┼───────
0 │ A │ 3
1 │ B │ 2
0 │ A │ 3
1 │ B │ 2
───┴───────┴───────
```
```