Divooka Reference

Table Sources

6 nodes

On this page 6

Empty Table

Function

A table with these columns and no rows, each column of the given kind (Text when no kinds are given).

Signature
EmptyTable -> Table
    columns: Text Array
    types: ColumnType Array
Table EmptyTable(string[] columns, ColumnType[] types)

Parameters

nametypedefaultdescription
columnsText Array—The column names.
typesColumnType Array—Each column's kind, in the same order; Text where not given.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics

Number Sequence

Function

A one-column table counting from Start to End in steps of Step - 1, 2, 3 … 10 by default.

Signature
NumberSequence -> Table
    start: Number
    end: Number
    step: Number
    name: Text
Table NumberSequence(
    double start = 1,
    double end = 10,
    double step = 1,
    string name = "n")

Parameters

nametypedefaultdescription
startNumber1The first number.
endNumber10The last number, if the steps land on it.
stepNumber1How far apart the numbers are; negative counts down.
nameTextnThe column's name.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics

Sample Dataset

Function

One of the built-in sample datasets: Sales (1,200 order lines), Customers (60), Orders (500, some referring to customers that do not exist), Weather (a year of five cities) or Employees (80, with gaps and inconsistent spellings to clean up).

Signature
SampleDataset(dataset: Sample Data) -> Table
Table SampleDataset(SampleData dataset = SampleData.Sales)

Parameters

nametypedefaultdescription
datasetSample DataSalesWhich dataset.

Returns

TableTable

Remarks

Synthetic and generated from fixed seeds, so every machine gets the same table, and it is the same table Divooka Lite's Sample Dataset gives.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics

Table From Columns

Function

A table made of columns, under these names - the names and the columns in the same order.

Signature
TableFromColumns -> Table
    names: Text Array
    columns: Column Array
    tableName: Text
Table TableFromColumns(
    string[] names,
    Column[] columns,
    string tableName = "")

Parameters

nametypedefaultdescription
namesText Array—The column names.
columnsColumn Array—The columns, all the same length.
tableNameText—What the table is called where it needs a name; optional.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics

Table From List

Function

A table from a list: a list of numbers, text or dates is one column; a list of records (objects with properties) is a column per property.

Signature
TableFromList(values: Any, column: Text) -> Table
Table TableFromList(object values, string column = "Value")

Parameters

nametypedefaultdescription
valuesAny—An array or list of anything.
columnTextValueThe column's name, for a list of single values.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics

Table List

Function

Up to four tables as a list, in order - for the nodes that take several at once: Query With SQL, Write Spreadsheet, Append Rows. A pin left unconnected is left out.

Signature
TableList -> Table Array
    first: Table
    second: Table
    third: Table
    fourth: Table
Table[] TableList(
    Table first,
    Table second,
    Table third,
    Table fourth)

Parameters

nametypedefaultdescription
firstTable—The first table.
secondTable—The second; optional.
thirdTable—The third; optional.
fourthTable—The fourth; optional.

Returns

TablesTable Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Sources
Package
Data Analytics