table::schema
Column types and the schema of a table.
Structs
FieldSource
pub struct FieldA column's name and type.
SchemaSource
pub struct SchemaThe names and types of a table's columns, in order.
nabi
let t = table::table!{ "id": [1, 2], "score": [0.5, 1.5] };
let s = t.schema();
assert(s.len() == 2);
assert(s.dtype("score") == table::DType::F64);
From
(name, type)pairs.The number of columns.
The column names, in order.
The type of column
name,nonewhen there is no such column.
Trait implementations 1
impl Display for Schema
Enums
DTypeSource
pub enum DTypeThe type of a column.
nabi
assert(f"{table::DType::F64}" == "f64");
assert(table::DType::I64.is_numeric());
Dictionary-encoded strings: a code per row into a list of distinct values. Reads and compares as
Str.I64orF64.StrorCat.The name
Displaywrites, also accepted byparse.The type named
s("i64","f64","bool","str","cat","date","datetime").
Trait implementations 1
impl Display for DType