| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
Before you chart or join a table you need to know what each column actually contains. The analyzer reads the header and every data row, then writes one object per column: name, type, missing, and distinct. When every filled cell is a finite number, the type is number and the object also carries min, max, and mean.
Take a three-row sheet. The header is name, amount, code. The rows are a quoted company A, Inc. with amount 2 and code 001, then Bob with amount 10 and a blank code, then Bob again with amount 10 and a blank code. The profile says three rows. name is text, nothing missing, two distinct values. amount is a number from 2 to 10 with mean 7.33, the raw mean being 7.333333333333333. code is reported as a number because the only filled cell, 001, parses as 1, so min, max, and mean are all 1, with two cells missing and two distinct values once the blanks are counted.
That code result is the trap. Leading zeros survive in CSV to JSON, which keeps 001 as the string 001. The analyzer uses numeric parsing, so a column of zero-padded identifiers looks like a small integer. Read the type before you treat the mean as meaningful.
name,amount,code then "A, Inc.",2,001 then Bob,10, then Bob,10,
rowCount 3. amount min 2, max 10, mean 7.333333333333333. code type number, missing 2, min 1, max 1, because 001 parsed as 1.
The profile answers what the column is before you average it or chart it, using the same parse the other CSV tools use.
It is the sum of the filled numeric cells divided by how many of those cells there are. Blanks are missing, not zeros. 2, 10, and 10 average to 7.333333333333333.
Number("001") is 1. The analyzer types a column as number when every non-blank cell parses. It does not preserve identifier padding.
Yes, if you leave them in. Bob's amount 10 is in the column twice, so it pulls the mean. Drop copies on Duplicate rows first if each person should count once.
A cell that is empty or only whitespace. A quoted empty code still counts as missing.
No. Only number columns receive min, max, and mean. Text columns stop at missing and distinct.