-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[listaggr-] add rank aggregator, add cmd addcol-aggregate
Also adds a command addcol-sheetrank.
- Loading branch information
Showing
4 changed files
with
189 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!vd -p | ||
{"sheet": "global", "col": null, "row": "disp_date_fmt", "longname": "set-option", "input": "%b %d, %Y", "keystrokes": "", "comment": null} | ||
{"longname": "open-file", "input": "sample_data/test.jsonl", "keystrokes": "o"} | ||
{"sheet": "test", "col": "key2", "row": "", "longname": "key-col", "input": "", "keystrokes": "!", "comment": "toggle current column as a key column"} | ||
{"sheet": "test", "col": "key2", "row": "", "longname": "addcol-aggregate", "input": "count", "comment": "add column(s) with aggregator of rows grouped by key columns"} | ||
{"sheet": "test", "col": "qty", "row": "", "longname": "type-float", "input": "", "keystrokes": "%", "comment": "set type of current column to float"} | ||
{"sheet": "test", "col": "qty", "row": "", "longname": "addcol-aggregate", "input": "rank sum", "comment": "add column(s) with aggregator of rows grouped by key columns"} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
key2 key2_count key1 qty qty_rank qty_sum amt | ||
foo 2 2016-01-01 11:00:00 1.00 1 31.00 | ||
0 2016-01-01 1:00 2.00 1 66.00 3 | ||
baz 3 4.00 1 292.00 43.2 | ||
#ERR 0 #ERR #ERR 1 0.00 #ERR #ERR | ||
bar 2 2017-12-25 8:44 16.00 2 16.00 .3 | ||
baz 3 32.00 2 292.00 3.3 | ||
0 2018-07-27 4:44 64.00 2 66.00 9.1 | ||
bar 2 2018-07-27 16:44 1 16.00 | ||
baz 3 2018-07-27 18:44 256.00 3 292.00 .01 | ||
foo 2 2018-10-20 18:44 30.00 2 31.00 .01 |
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