Table Aggregation
4 nodes
On this page 4
Describe Columns
FunctionA 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.
DescribeColumns(table: Table) -> Table
Table DescribeColumns(Table table)
Parameters
| name | type | default | description |
|---|---|---|---|
| table | Table | — | The table to profile. |
Returns
| Profile | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Aggregation
- Package
- Data Analytics
Group And Aggregate
FunctionThe 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.
GroupAndAggregate -> Table
table: Table
groupBy: Text Array
column: Text
aggregation: Aggregation
name: TextTable GroupAndAggregate(
Table table,
string[] groupBy,
string column = "",
Aggregation aggregation = Aggregation.Sum,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| table | Table | — | The rows to group. |
| groupBy | Text Array | — | The columns whose values make a group; none for the whole table. |
| column | Text | — | The column to summarize; not needed for Count Rows. |
| aggregation | Aggregation | Sum | How each group's values become one. |
| name | Text | — | The summary column's name; "Sum of Revenue" and the like when empty. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Aggregation
- Package
- Data Analytics
Group And Summarize
FunctionThe 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.
GroupAndSummarize -> Table
table: Table
groupBy: Text Array
summaries: TextTable GroupAndSummarize(
Table table,
string[] groupBy,
string summaries = "")Parameters
| name | type | default | description |
|---|---|---|---|
| table | Table | — | The rows to group. |
| groupBy | Text Array | — | The columns whose values make a group; none for the whole table. |
| summaries | Text | — | The summaries, as formulas separated by commas. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Aggregation
- Package
- Data Analytics
Value Counts
FunctionHow often each value of a column occurs: the values and their counts, most frequent first. Empty values are not counted.
ValueCounts -> Table
table: Table
column: Text
proportions: TruthTable ValueCounts(
Table table,
string column,
bool proportions = false)Parameters
| name | type | default | description |
|---|---|---|---|
| table | Table | — | The table. |
| column | Text | — | The column to count the values of. |
| proportions | Truth | False | Whether to give each value's share of all the values instead of its count. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Aggregation
- Package
- Data Analytics