Data Analytics
The Data Analytics toolbox works with tables. You read a table from a CSV file, a spreadsheet, a database, a web API or one of the built-in sample datasets. Then you clean it, combine it with other tables, group and summarize it, and write the result to a file or a report.
Use it when a spreadsheet gets too slow or too manual: monthly figures you rebuild every month, a CSV export you clean the same way every time, or a summary you send to someone as a PDF. Each step is a node, so you can see what every step produced, change one setting and run again.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Data Analytics workload, or add the Data Analytics reference with Add reference (
Ctrl+Shift+L). The Data Analytics reference holds Data Analytics and Plotting. - Maturity: Stable · Support: Tier 1 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Data Analytics, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Data Analytics (14 examples) · node reference
New to graphs? Start with Your first program.
Main ideas
A table travels on one wire. A table is a set of named columns that all have the same number of rows. Most nodes take a table and return a new table. The table you passed in does not change, so you can branch from any step.
Every column has one type. The types are Number, Text, Truth (true or false) and Date & Time. Any cell can be empty. An empty cell is a missing value, not zero and not empty text. Read CSV and Parse CSV set each column's type for you.
Formulas are written like spreadsheet formulas. Filter By Formula, Formula Column, Group And Summarize and Calculate share one formula language. It uses the spreadsheet function names you know, such as IF, ROUND, SUM, YEAR, PROPER and TRIM. Write a column name as it is (Units), or in brackets when it has a space ([Unit Price]).
Example: total sales by region
The task: for 1,200 sales orders, count each region's orders, units and revenue, largest revenue first.
Open Data Analytics > Grouping and Summarizing from the examples (Ctrl+Shift+E). Its first five nodes do this:

- Sample Dataset, Dataset
Sales. This is the sample sales table: 1,200 order lines with the columns Order ID, Date, Region, Category, Product, Units, Unit Price, Discount and Revenue. It is the same on every computer. - Group And Summarize, Group By
Region, SummariesOrders = COUNT(), Units = SUM(Units), Revenue = ROUND(SUM(Revenue), 2). It puts the rows of each region together and works out each summary for each group. The name before=becomes the column name. - Sort Rows, Columns
Revenue, Descending on. - Table To Text, Max Rows
20. It turns the table into aligned text. - Print Line prints the text to the console.
This is a Routine graph: nodes run in the order their Next and Previous pins connect them. The picture leaves those pins out. If you build the graph yourself, connect them in the order of the steps above.
Run it with F5. After the run, select any step to see its table in the preview. The console shows:
Region Orders Units Revenue
------ ------ ----- ---------
East 287 1476 180091.04
West 313 1463 174407.21
North 293 1273 151613.57
South 307 1050 127486.69
To try more: set Group By to Region and Category to get one row for each combination, or add the summary Average Price = ROUND(MEAN([Unit Price]), 2).
To use your own data: replace Sample Dataset with Read CSV or Read Spreadsheet and give it the path to your file.
Example: clean a messy CSV file
The task: a staff list arrives with an empty row, a row typed twice, department names with stray spaces, wrong capitals and an abbreviation, and a missing salary. Make it tidy.
Open Data Analytics > Loading and Cleaning. Its input is this CSV text, held in a Text node:
Name,Department,Salary,Start Date
Ada Ueda,Design,135500,2020-05-28
Ben Varga, finance ,95000,2019-06-08
Chloé Rossi,SALES,,2021-03-01
Ben Varga, finance ,95000,2019-06-08
,,,
Dev Patel,Ops,77000,2017-03-14
Elena Moreau,Sales,79500,

- Parse CSV reads the text into a table. Salary becomes a Number column and Start Date a Date & Time column. The blank salary becomes a missing value.
- Drop Empty Rows, All Empty on. It removes the row that has nothing in it.
- Remove Duplicates removes the row typed twice.
- Formula Column, Name
Department, FormulaIF(PROPER(TRIM([Department])) = "Ops", "Operations", PROPER(TRIM([Department]))). Because the name matches an existing column, it replaces that column. The formula removes the spaces, fixes the capitals and spells out Operations. - Fill Empty Cells, Columns
Salary, StrategyMedian. It gives the missing salary the median of the others.
This is also a Routine graph, so the same note about Next and Previous applies. Run it. The console ends with:
Read 7 rows; 5 are left.
Name Department Salary Start Date
------------ ---------- ------ ----------
Ada Ueda Design 135500 2020-05-28
Ben Varga Finance 95000 2019-06-08
Chloé Rossi Sales 87250 2021-03-01
Dev Patel Operations 77000 2017-03-14
Elena Moreau Sales 79500
Elena Moreau's start date stays empty, because Fill Empty Cells was set to fill only Salary.
To use your own data: replace the Text node and Parse CSV with Read CSV and give it your file's path.
More examples to open
The Data Analytics category has 14 examples. After the two above, try these:
| Example | What it shows |
|---|---|
| Joining Tables | Join (Inner, Left, Anti), then totals by country |
| Reshaping | Pivot and Unpivot, and a bar chart |
| Time Series | Rolling and running calculations over a year of weather |
| SQL Queries | Query With SQL over several tables |
| Writing a Spreadsheet | Two summaries as sheets of one .xlsx file |
| SQLite Databases | Write, read and query a SQLite file |
| Querying Web APIs | Live data from a public earthquake service |
Five case studies (Cybersecurity, Engineering, Finance, Investment, Transport) each end in a report saved as a file. Three of them download an open dataset, so they need an internet connection the first time.
Tips and limits
- Missing values have rules. Sums, means and other summaries skip missing values. Missing values sort last, whichever way you sort. A join never matches on a missing key. In a formula, arithmetic with a missing value gives a missing value, where a spreadsheet would treat a blank cell as 0.
- One number type. Every Number column holds 64-bit floating-point values. Whole numbers are exact up to about 9 quadrillion (2^53).
- Several tables into one node. A pin takes one wire. To give Query With SQL, Write Spreadsheet or Append Rows several tables, collect them with Table List, which takes up to four.
- Tables to charts. Get Numbers turns a column into a list of numbers for any node that takes one; an empty cell becomes NaN, which a chart draws as a gap. To chart a table directly, use Table As Series and the Table Charts in the Plotting toolbox.
- SQL is optional. Query With SQL runs
SELECTqueries in memory on the tables in your graph, with joins, grouping, window functions and subqueries. No database is needed. Query SQLite runs SQL on a SQLite file; no other node needs SQL. - Downloads are cached. Download Dataset fetches a file once and keeps it in a Datasets folder in your local application data (on Windows,
%LOCALAPPDATA%\Divooka\Datasets). Set the environment variableDIVOOKA_DATASET_CACHEto move it. A run that cannot reach the file stops with "Dataset not reachable". - Keep secrets out of the document. In Query CSV API and Query JSON API, write a key as
${NAME}to read it from the environment variableNAME. - Google Sheets needs a Google Cloud service account. Share the sheet with the service account before you read it.
- Reports go to a reports folder. Save Report writes into
Documents\Divooka\Reportsunless you give a full path, or setDIVOOKA_REPORTS_FOLDERto change it. - Spreadsheets are .xlsx. Read Spreadsheet and Write Spreadsheet work with .xlsx workbooks.
Goes well with: Plotting for charts, Statistics and Linear Algebra for numbers beyond tables.
What is in the toolbox
The nodes are sorted into these categories.
| Category | Some of its nodes |
|---|---|
| Table Sources | Sample Dataset, Number Sequence, Table From Columns, Table List |
| CSV Files | Read CSV, Parse CSV, Write CSV |
| JSON Files | Read JSON, Parse JSON, Write JSON |
| Spreadsheet Files | Read Spreadsheet, Sheet Names, Write Spreadsheet |
| Document Files (Word) | Read Document Tables, Write Document |
| Presentation Files (PowerPoint) | Read Slides, Write Slides |
| SQLite Files | Read SQLite, Query SQLite, Write SQLite |
| SQL Scripts | To SQL Script: a table as an SQL script |
| Datasets | Download Dataset |
| REST Sources (web APIs) | Query CSV API, Query JSON API |
| Google Sheets | Create From Google Sheet, Write Data |
| Row Operations | Filter Rows, Filter By Formula, Sort Rows, Top N, Remove Duplicates |
| Column Operations | Select Columns, Formula Column, Change Type, Fill Empty Cells |
| Table Combination | Join, Append Rows, Append Columns |
| Table Aggregation | Group And Summarize, Describe Columns, Value Counts |
| Table Reshaping | Pivot, Unpivot, Transpose |
| Table Values | Get Cell, Get Numbers, Table To Text, Table To Markdown |
| Columns | Make Number Column, Make Text Column, Column From List |
| Statistics | Mean, Median, Standard Deviation, Quantile, Correlation |
| Table Queries | Query With SQL, Explain SQL |
| Report Content | New Report, Add Heading, Add Table, Add Chart |
| Report Export | Save Report: PDF, PowerPoint or Word |
See also
- Data Analytics node reference - every node, with its inputs and outputs.
- Plotting - charts, including charts of tables.
- SQL and SQLite - background on the SQL the query nodes use.
- Toolboxes - every other toolbox.