Рет қаралды 4,300
This workflow uses intermediate knowledge of the command line (shell pipes and regex)
Using VisiData v1.1 to take a paragraph of donation information from a website (beginners.re) and quickly get it into a form that can be easily summed.
Commands and features explored:
★ 1:00 pipe stdin to vd
★ 1:27 Ctrl-O in any edit field to open it with own $EDITOR
★ 2:01 : (colon) to split
★ 2:18 'd' to delete the current row
★ 2:38 Shift-M to melt (like unpivot)
★ 2:59 ; (semicolon) to match by regex capture group
★ 3:35 $ (dollar sign) to type column as "currency" (a dirty float)
★ 4:12 z+ to apply an aggregator to the current column and show result
★ 4:45 ~ (tilde) to type column as a string
★ 4:55 = (equal) to create a new column by Python expression
Also demonstrated is a USD() function (in .visidatarc) that converts from a string with number and currency into a float of the amount in USD.