Divooka Reference

Table Aggregation

4 nodes

On this page 4

Describe Columns

Function

A profile of every column: a row per column with its kind, how many values it has and is missing, how many are different, its smallest and largest, its mean, median and standard deviation (for numbers), and its most common value.

Signature
DescribeColumns(table: Table) -> Table
Table DescribeColumns(Table table)

Parameters

nametypedefaultdescription
tableTable—The table to profile.

Returns

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

Group And Aggregate

Function

The rows grouped by the values of some columns, and one column of each group summarized with one summary - Sum, Mean, Count and the rest. Group & Summarize does several summaries, and formulas, at once.

Signature
GroupAndAggregate -> Table
    table: Table
    groupBy: Text Array
    column: Text
    aggregation: Aggregation
    name: Text
Table GroupAndAggregate(
    Table table,
    string[] groupBy,
    string column = "",
    Aggregation aggregation = Aggregation.Sum,
    string name = "")

Parameters

nametypedefaultdescription
tableTable—The rows to group.
groupByText Array—The columns whose values make a group; none for the whole table.
columnText—The column to summarize; not needed for Count Rows.
aggregationAggregationSumHow each group's values become one.
nameText—The summary column's name; "Sum of Revenue" and the like when empty.

Returns

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

Group And Summarize

Function

The rows grouped by the values of some columns, and each group summarized: one row per group, its key columns and then a column per summary. With no columns to group by, the whole table is one group.

Signature
GroupAndSummarize -> Table
    table: Table
    groupBy: Text Array
    summaries: Text
Table GroupAndSummarize(
    Table table,
    string[] groupBy,
    string summaries = "")

Parameters

nametypedefaultdescription
tableTable—The rows to group.
groupByText Array—The columns whose values make a group; none for the whole table.
summariesText—The summaries, as formulas separated by commas.

Returns

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

Value Counts

Function

How often each value of a column occurs: the values and their counts, most frequent first. Empty values are not counted.

Signature
ValueCounts -> Table
    table: Table
    column: Text
    proportions: Truth
Table ValueCounts(
    Table table,
    string column,
    bool proportions = false)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column to count the values of.
proportionsTruthFalseWhether to give each value's share of all the values instead of its count.

Returns

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