Skip to content

Commit 857b6f4

Browse files
committed
Readme wording.
1 parent dd792e9 commit 857b6f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ See the [tsv-select reference](#tsv-select-reference) for details.
8484

8585
### tsv-summarize
8686

87-
tsv-summarize runs aggregation operations on fields. For example, generating the sum or median of a field's values. Summarization calculations can be run across the entire input or can be grouped by key fields. A single row of output is produced for the former, multiple rows for the latter. As an example, consider the file `data.tsv`:
87+
tsv-summarize runs aggregation operations on fields. For example, generating the sum or median of a field's values. Summarization calculations can be run across the entire input or can be grouped by key fields. As an example, consider the file `data.tsv`:
8888
```
8989
color weight
9090
red 6
@@ -93,7 +93,7 @@ blue 15
9393
red 4
9494
blue 10
9595
```
96-
The sum and mean weights are calculated as follows:
96+
Calculation of the sum and mean of the `weight` column are below. The first command runs calculations on all values. The second groups them by color.
9797
```
9898
$ tsv-summarize --header --sum 2 --mean 2 data.tsv
9999
weight_sum weight_mean
@@ -105,9 +105,9 @@ red 15 5
105105
blue 25 12.5
106106
```
107107

108-
Note that it was not necessary to sort the file prior to using `--group-by`, this convenience is built-in.
108+
Multiple fields can be used as the `--group-by` key. The file's sort order does not matter, there is no need to sort in the `--group-by` order first.
109109

110-
A number of aggregation operations are available, see the [tsv-summarize reference](#tsv-summarize-reference) for details.
110+
See the [tsv-summarize reference](#tsv-summarize-reference) for the list of statistical and other aggregation operations available.
111111

112112
### csv2tsv
113113

0 commit comments

Comments
 (0)