turicreate.Sketch.dict_value_summary

Sketch.dict_value_summary()

Returns the sketch summary for all dictionary values. This is only valid for sketch object from an SArray of dict type.

Type of value summary is inferred from first set of values.

Examples

>>> sa = turicreate.SArray([{'I':1, 'love': 2}, {'nature':3, 'beauty':4}])
>>> sa.summary().dict_value_summary()
+--------------------+---------------+----------+
|        item        |     value     | is exact |
+--------------------+---------------+----------+
|       Length       |       4       |   Yes    |
|        Min         |      1.0      |   Yes    |
|        Max         |      4.0      |   Yes    |
|        Mean        |      2.5      |   Yes    |
|        Sum         |      10.0     |   Yes    |
|      Variance      |      1.25     |   Yes    |
| Standard Deviation | 1.11803398875 |   Yes    |
|  # Missing Values  |       0       |   Yes    |
|  # unique values   |       4       |    No    |
+--------------------+---------------+----------+
Most frequent items:
+-------+-----+-----+-----+-----+
| value | 1.0 | 2.0 | 3.0 | 4.0 |
+-------+-----+-----+-----+-----+
| count |  1  |  1  |  1  |  1  |
+-------+-----+-----+-----+-----+
Quantiles:
+-----+-----+-----+-----+-----+-----+-----+-----+------+
|  0% |  1% |  5% | 25% | 50% | 75% | 95% | 99% | 100% |
+-----+-----+-----+-----+-----+-----+-----+-----+------+
| 1.0 | 1.0 | 1.0 | 2.0 | 3.0 | 4.0 | 4.0 | 4.0 | 4.0  |
+-----+-----+-----+-----+-----+-----+-----+-----+------+