Skip to content

Commit 6ee077d

Browse files
committed
Improve arquero example docs
1 parent c0fc863 commit 6ee077d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ console.log(newfile)
2424

2525
Can be found in the examples folder:
2626

27-
`deno run --allow-read --allow-write examples/csv-example.ts`
27+
* `deno run --allow-read --allow-write examples/csv-example.ts`
28+
* `deno run --allow-read --allow-write examples/arquero-example.ts`
2829

2930
## Testing
3031

examples/arquero-example.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as aq from "https://cdn.skypack.dev/arquero";
22

3-
let t = await aq.fromCSV(await Deno.readTextFile("flights.csv"));
4-
3+
let t = await aq.fromCSV(await Deno.readTextFile("./examples/flights.csv"));
54

65
t = t
76
.derive({
@@ -23,4 +22,4 @@ t = t
2322
// Sort rows by duration, descreasing
2423
.orderby(aq.desc("duration"));
2524

26-
await Deno.writeTextFile("flights_cleaned.csv", t.toCSV());
25+
await Deno.writeTextFile("./examples/flights2.csv", t.toCSV());

examples/flights2.csv

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
callsign,number,origin,duration,day
2+
ASA607,AS607,KMCF,22350,2021-01-31T00:00:00.000Z
3+
UAL1978,UA1978,KEWR,20778,2021-01-31T00:00:00.000Z
4+
DAL1030,DL1030,KMSP,13982,2021-01-31T00:00:00.000Z
5+
UAL419,UA419,KDEN,8156,2021-01-31T00:00:00.000Z
6+
SKW5736,OO5736,KSLC,6886,2021-01-31T00:00:00.000Z
7+
SKW5805,OO5805,,6196,2021-01-31T00:00:00.000Z
8+
UAL1687,UA1687,KPDX,5306,2021-01-31T00:00:00.000Z
9+
SKW3380,OO3380,KLAS,4361,2021-01-31T00:00:00.000Z
10+
SWA3239,WN3239,KLAX,3128,2021-01-31T00:00:00.000Z

0 commit comments

Comments
 (0)