Skip to content

Commit c8125d2

Browse files
committed
Update readme to reflect new Table.from signature
1 parent 49ac339 commit c8125d2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

js/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
[![Build Status](https://travis-ci.org/apache/arrow.svg?branch=master)](https://travis-ci.org/apache/arrow)
2323
[![Coverage Status](https://coveralls.io/repos/github/apache/arrow/badge.svg)](https://coveralls.io/github/apache/arrow)
2424

25-
Arrow is a set of technologies that enable big-data systems to process and move data fast.
25+
Arrow is a set of technologies that enable big-data systems to process and transfer data quickly.
2626

2727
## install [apache-arrow from npm](https://www.npmjs.com/package/apache-arrow)
2828

@@ -50,7 +50,7 @@ import { readFileSync } from 'fs';
5050
import { Table } from 'apache-arrow';
5151

5252
const arrow = readFileSync('simple.arrow');
53-
const table = Table.from(arrow);
53+
const table = Table.from([arrow]);
5454

5555
console.log(table.toString());
5656

@@ -70,7 +70,7 @@ null, null, null
7070
import { readFileSync } from 'fs';
7171
import { Table } from 'apache-arrow';
7272

73-
const table = Table.from(...[
73+
const table = Table.from([
7474
'latlong/schema.arrow',
7575
'latlong/records.arrow'
7676
].map((file) => readFileSync(file)));
@@ -93,12 +93,12 @@ console.log(table.toString());
9393
import { readFileSync } from 'fs';
9494
import { Table } from 'apache-arrow';
9595

96-
const table = Table.from(...[
96+
const table = Table.from([
9797
'latlong/schema.arrow',
9898
'latlong/records.arrow'
9999
].map(readFileSync));
100100

101-
const column = table.getColumn('origin_lat');
101+
const column = table.col('origin_lat');
102102
const typed = column.slice();
103103

104104
assert(typed instanceof Float32Array);
@@ -135,7 +135,7 @@ MapD.open(host, port)
135135
// Create Arrow Table from results
136136
Table.from(schema, records))
137137
.map((table) =>
138-
// Stringify the table to CSV
138+
// Stringify the table to CSV with row numbers
139139
table.toString({ index: true }))
140140
.subscribe((csvStr) =>
141141
console.log(csvStr));

0 commit comments

Comments
 (0)