<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/visualization/show_examples.py#L153-L207) |

Display the datasets statistics on a Colab/Jupyter notebook.

#### View aliases


**Main aliases**

[`tfds.show_statistics`](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_statistics)

<br />

    tfds.visualization.show_statistics(
        ds_info: dataset_info.DatasetInfo,
        split: splits.Split = splits.Split.TRAIN,
        disable_logging: bool = True
    ) -> None

[`tfds.show_statistics`](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_statistics) is a wrapper around
[tensorflow_data_validation](https://www.tensorflow.org/tfx/data_validation/get_started)
which calls [`tfdv.visualize_statistics`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/visualize_statistics). Statistics are displayed using
[FACETS OVERVIEW](https://pair-code.github.io/facets/).

#### Usage:

    builder = tfds.builder('mnist')
    tfds.show_statistics(builder.info)

#### Or:

    ds, ds_info = tfds.load('mnist', with_info)
    tfds.show_statistics(ds_info)

> [!NOTE]
> **Note:** In order to work, `tensorflow_data_validation` must be installed and the dataset info object must contain the statistics. For "official" datasets, only datasets which have been added/updated recently will contains statistics. For "custom" datasets, you need to generate the dataset with `tensorflow_data_validation` installed to have the statistics.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `ds_info` | The [`tfds.core.DatasetInfo`](https://www.tensorflow.org/datasets/api_docs/python/tfds/core/DatasetInfo) object containing the statistics. |
| `split` | Split for which generate the statistics. |
| `disable_logging` | `bool`, if True, disable the tfdv logs which can be too verbose. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `None` ||

<br />