Permalink
Browse files

Add asciicasts and tests

  • Loading branch information...
anjakefala committed Nov 16, 2017
1 parent 1368216 commit dcb2a8a4911e4091f3a61393b30ba8ade4392947
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,8 +1,9 @@
sheet col row keystrokes input comment
o sample_data/surveys.csv open input in VisiData
o sample_data/surveys.csv open file
surveys record_id 0 O open Options
options value 11 ^J Null edit option
options value 11 q quit current sheet
options option 14 ^J Null edit option
options option 14 ^^ jump to previous sheet (swaps with current sheet)
surveys record_id 0 zr 24 move to the given row number
surveys sex 24 , select rows matching current cell in current column
surveys sex 24 gzd set contents of cells in current column to None for selected rows
surveys sex 24 gu unselect all rows
View
@@ -11,4 +11,4 @@ sheets name 2 s select current row
sheets name 2 & full merge the selected sheets with visible columns from all, keeping rows according to jointype
data1+data2 A 0 ! pin current column on the left as a key column
data1+data2 B 0 g[ sort ascending by all key columns
data1+data2 A 0 ! pin current column on the left as a key column
data1+data2 A 0 ! unpin current column as a key column
View
@@ -0,0 +1,19 @@
sheet col row keystrokes input comment
o sample_data/StatusPR.csv open file
StatusPR Month 0 = Month+Day create new column from Python expression, with column names as variables
StatusPR Month+Day 0 @ set type of current column to ISO8601 datetime
StatusPR Month+Day 0 C open Columns Sheet
StatusPR_columns fmtstr 1 e %Y-%m-%d edit contents of current cell
StatusPR_columns value 1 ^^ jump to previous sheet (swaps with current sheet)
StatusPR Month+Day 0 ! pin current column on the left as a key column
StatusPR Month 0 - hide current column
StatusPR Day 0 - hide current column
StatusPR Resource 0 ! pin current column on the left as a key column
StatusPR Value 0 % set type of current column to float
StatusPR Value 0 m graph the current column vs the first key column (or row number)
StatusPR_graph 0 0 q quit current sheet
StatusPR Location 0 | Puerto select rows matching regex in current column
StatusPR Unit 0 \ number unselect rows matching regex in current column
StatusPR Unit 0 " open duplicate sheet with only selected rows
StatusPR_selectedref Unit 0 gu unselect all rows
StatusPR_selectedref Value 0 m graph the current column vs the first key column (or row number)
View
@@ -0,0 +1,17 @@
name: display-null
vd: tests/display-null.vd
preview: poster="npt:0:31"
question: How do I represent Null values in my data?
workflow: disp_none option controls the visible representation of None values, zd sets a cell to None
timestamps:
- 0.5
- 2
- 14
- 15.5
- 17
- 23
- 24.5
- 26
- 28
- 30
- 31

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,47 @@
name: exp-digits
vd: tests/exp-digits.vd
preview: poster="npt:1:25"
question: How can I perform analyses on numerical series?
workflow: Consider the count of each digit in the integer portion of e^x. What are the largest numbers with the highest counts of each digit?
timestamps:
- 0.5
- 2
- 4
- 5
- 6.5
- 8
- 9.5
- 12
- 13
- 15
- 16
- 17.5
- 20
- 21.5
- 23
- 24.5
- 26
- 27.5
- 29
- 30.5
- 32
- 33.5
- 35
- 36.5
- 42.5
- 49
- 52
- 54
- 55.5
- 57
- 60.5
- 64
- 67
- 69
- 71
- 72.5
- 75
- 76.5
- 79.5
- 81
- 85

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,19 @@
name: full-join
vd: tests/full-join.vd
preview: poster="npt:0:23"
question: How do I combine all of the columns from both of my datasets?
workflow: open the sheets sheet, select the datasets you wish to combine and perform a full join
timestamps:
- 0.5
- 2
- 3.5
- 5
- 8
- 9.5
- 11
- 13
- 14.5
- 17
- 19
- 20.5
- 23

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit dcb2a8a

Please sign in to comment.