Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal. Parent comment
$medias = open .\medias.csv
I'm currently on my phone so can't go through all the examples, but knowing both PS and nu, nu has the better syntax.
EDIT:
Get data and view in table:
let $medias = http get https://github.com/medialab/corpora/raw/master/polarisation/medias.csv $medias
$medias | columns
$medias | length
$medias | each {print $in}
$medias | where $it.outreach == 'internationale'
$medias | select foundation_year name
$medias | select foundation_year name | sort-by foundation_year
$medias | uniq-by mediacloud_ids
$medias | histogram edito
There are no comments on this comment yet.
I'm currently on my phone so can't go through all the examples, but knowing both PS and nu, nu has the better syntax.
EDIT:
Get data and view in table:
Get headers: Get count of rows: Get flattened, slight more convoluted (caveat there might be a better way): Search rows: Select columns: Sort file: Dedup based on column: Computing frequency and histogram