[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfds.visualization.show_statistics\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/visualization/show_examples.py#L153-L207) |\n\nDisplay the datasets statistics on a Colab/Jupyter notebook.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tfds.show_statistics`](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_statistics)\n\n\u003cbr /\u003e\n\n tfds.visualization.show_statistics(\n ds_info: dataset_info.DatasetInfo,\n split: splits.Split = splits.Split.TRAIN,\n disable_logging: bool = True\n ) -\u003e None\n\n[`tfds.show_statistics`](../../tfds/visualization/show_statistics) is a wrapper around\n[tensorflow_data_validation](https://www.tensorflow.org/tfx/data_validation/get_started)\nwhich calls [`tfdv.visualize_statistics`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/visualize_statistics). Statistics are displayed using\n[FACETS OVERVIEW](https://pair-code.github.io/facets/).\n\n#### Usage:\n\n builder = tfds.builder('mnist')\n tfds.show_statistics(builder.info)\n\n#### Or:\n\n ds, ds_info = tfds.load('mnist', with_info)\n tfds.show_statistics(ds_info)\n\n| **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.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|----------------------------------------------------------------------------------------------|\n| `ds_info` | The [`tfds.core.DatasetInfo`](../../tfds/core/DatasetInfo) object containing the statistics. |\n| `split` | Split for which generate the statistics. |\n| `disable_logging` | `bool`, if True, disable the tfdv logs which can be too verbose. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| `None` ||\n\n\u003cbr /\u003e"]]