-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename stat to stats and stat2 to stats2
- Loading branch information
1 parent
aa39c31
commit be2cdba
Showing
5 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ | |
**Information** | ||
|
||
- [headers](#headers) | ||
- [stat](#stat) | ||
- [stat2](#stat2) | ||
- [stats](#stats) | ||
- [stats2](#stats2) | ||
|
||
**Format conversion** | ||
|
||
|
@@ -71,7 +71,7 @@ Usage | |
``` | ||
A cross-platform, efficient and practical CSV/TSV toolkit | ||
Version: 0.6.0 | ||
Version: 0.7.0-dev2 | ||
Author: Wei Shen <[email protected]> | ||
|
@@ -114,8 +114,8 @@ Available Commands: | |
sample sampling by proportion | ||
sort sort by selected fields | ||
space2tab convert space delimited format to CSV | ||
stat summary of CSV file | ||
stat2 summary of selected number fields | ||
stats summary of CSV file | ||
stats2 summary of selected number fields | ||
tab2csv convert tabular format to CSV | ||
transpose transpose CSV data | ||
uniq unique data without sorting | ||
|
@@ -163,15 +163,18 @@ $ csvtk headers testdata/*.csv$ | |
3 hobby | ||
``` | ||
|
||
## stat | ||
## stats | ||
|
||
Usage | ||
|
||
``` | ||
summary of CSV file | ||
Usage: | ||
csvtk stat [flags] | ||
csvtk stats [flags] | ||
Aliases: | ||
stats, stat | ||
``` | ||
|
||
|
@@ -187,7 +190,7 @@ Examples | |
1,"Robert","Thompson","abc" | ||
NA,"Robert","Abel","123" | ||
|
||
$ cat testdata/names.csv | csvtk stat | ||
$ cat testdata/names.csv | csvtk stats | ||
file num_cols num_rows | ||
- 4 5 | ||
|
||
|
@@ -199,7 +202,7 @@ Examples | |
7 8 0 | ||
8 1,000 4 | ||
|
||
$ cat testdata/digitals.tsv | csvtk stat -t -H | ||
$ cat testdata/digitals.tsv | csvtk stats -t -H | ||
file num_cols num_rows | ||
- 3 4 | ||
|
||
|
@@ -208,10 +211,10 @@ Examples | |
Usage | ||
|
||
``` | ||
summary of selected number fields: num, sum, min, max, mean, stdev | ||
summary of selected digital fields: num, sum, min, max, mean, stdev | ||
Usage: | ||
csvtk stat2 [flags] | ||
csvtk stats2 [flags] | ||
Flags: | ||
-f, --fields string select only these fields. e.g -f 1,2 or -f columnA,columnB | ||
|
@@ -223,7 +226,7 @@ Examples | |
|
||
1. simplest one | ||
|
||
$ seq 1 5 | csvtk stat2 -H -f 1 | ||
$ seq 1 5 | csvtk stats2 -H -f 1 | ||
field num sum min max mean stdev | ||
1 5 15 1 5 3 1.58 | ||
|
||
|
@@ -235,7 +238,7 @@ Examples | |
7 8 0 | ||
8 1,000 4 | ||
|
||
$ cat testdata/digitals.tsv | csvtk stat2 -t -H -f 1-3 | ||
$ cat testdata/digitals.tsv | csvtk stats2 -t -H -f 1-3 | ||
field num sum min max mean stdev | ||
1 4 20 1 8 5 3.16 | ||
2 4 1,015 2 1,000 253.75 497.51 | ||
|