TableReport JSON schema#
TableReport.json() returns a JSON string whose
top-level object contains the keys described below.
Top-level object#
Key |
Type |
Description |
|---|---|---|
|
string |
Name of the dataframe library used. Either |
|
integer |
Number of rows in the dataframe. |
|
integer |
Number of columns in the dataframe. |
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
integer |
The threshold from |
|
integer |
Number of columns whose values are all identical. |
|
array of column objects |
One entry per column, in the original column order. |
|
array of association objects |
Column-pair association scores (up to 1 000 pairs, sorted by strength).
Present only when |
|
string |
Optional. Present only when a |
|
string |
Optional. Name of the column used for sorting when the deprecated
parameter |
Column object#
Every entry in columns contains the following keys. Additional keys are
present depending on the column’s dtype; they are documented in the subsections
below.
Key |
Type |
Description |
|---|---|---|
|
integer |
Zero-based index of the column in the dataframe (same as |
|
integer |
Zero-based index of the column in the dataframe (same as
|
|
string |
Column name. |
|
string |
Column dtype as a string (e.g. |
|
integer |
Number of null / NaN values. |
|
number |
Fraction of null values in |
|
string |
Summary severity level: |
|
boolean |
|
|
boolean |
|
|
array of strings |
Names of the plot keys that are present on this column object (e.g.
|
Columns containing only nulls#
When null_count equals n_rows (all values are null) only the keys of
the base column object above are present; no statistical keys are added.
Categorical / string columns#
Present for non-numeric, non-datetime, non-duration columns that are not entirely null.
Key |
Type |
Description |
|---|---|---|
|
integer |
Number of distinct values (including null). |
|
number |
Fraction of distinct values relative to |
|
boolean |
|
|
array of |
The up to 10 most frequent values and their counts, sorted by
frequency descending. Each element is a two-element array
|
|
array of strings |
The up to 10 most frequent values (same order as |
|
any |
Optional: Present only when |
|
string (SVG) |
Optional: Present only when |
Numeric columns#
Present for columns whose dtype is numeric (integer or float), or duration
(timedelta). Boolean columns have a subset of these keys (only mean).
Key |
Type |
Description |
|---|---|---|
|
integer |
Number of distinct values. |
|
number |
Fraction of distinct values relative to |
|
boolean |
|
|
number |
Arithmetic mean of non-null values. |
|
number |
Standard deviation of non-null values. |
|
number |
Difference between the 75th and 25th percentiles. |
|
object |
Map of quantile level (as a numeric key) to value, for levels
|
|
number |
Optional. Present only when |
|
boolean |
|
|
string or null |
Unit used when |
|
Bin counts and edges for the distribution histogram. Always present
for non-constant numeric columns (even when |
|
|
string (SVG) |
Optional. Present only when |
|
string (SVG) |
Optional. Present only when |
Datetime columns#
Present for columns with a date or datetime dtype.
Key |
Type |
Description |
|---|---|---|
|
integer |
Number of distinct values. |
|
number |
Fraction of distinct values relative to |
|
boolean |
|
|
string (ISO 8601) |
Earliest datetime value. Absent when |
|
string (ISO 8601) |
Latest datetime value. Absent when |
|
string (ISO 8601) |
Optional. Present only when |
|
Bin counts and edges. Always present for non-constant datetime
columns (even when |
|
|
string (SVG) |
Optional. Present only when |
Histogram data object#
The histogram_data key on numeric and datetime column objects contains an
object with the following keys.
Key |
Type |
Description |
|---|---|---|
|
array of integers |
Count of values in each bin (length n). |
|
array of numbers |
Left and right edges of each bin (length n + 1). Refer to
|
|
integer |
Number of values below the plotted range that were excluded from the histogram bins. |
|
integer |
Number of values above the plotted range that were excluded from the histogram bins. |
|
number |
Only present for datetime columns. Offset value subtracted from all values before building the histogram. The offset is the minimum of the column. |
Association object#
Each entry in the top-level top_associations array describes the
association between a pair of columns.
Key |
Type |
Description |
|---|---|---|
|
string |
Name of the first column in the pair. |
|
integer |
Zero-based index of the first column in the pair. |
|
string |
Name of the second column in the pair. |
|
integer |
Zero-based index of the second column in the pair. |
|
number or null |
Cramér’s V
statistic ( |
|
number or null |
Pearson correlation
coefficient ( |