Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Perspective

Construct a Table

Examples of constructing an empty Table from a schema.

JavaScript:

var schema = {
 x: "integer",
 y: "string",
 z: "boolean",
};
const table2 = await worker.table(schema);

Python:

from datetime import date, datetime
schema = {
 "x": "integer",
 "y": "string",
 "z": "boolean",
}
table2 = perspective.table(schema)

Rust:

#![allow(unused)]
fn main() {
let data = TableData::Schema(vec![(" a".to_string(), ColumnType::FLOAT)]);
let options = TableInitOptions::default();
let table = client.table(data.into(), options).await?;
}

AltStyle によって変換されたページ (->オリジナル) /