# tfdv.load_statistics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L347-L369) |

Loads data statistics proto from file.

    tfdv.load_statistics(
        input_path: Text
    ) -> statistics_pb2.DatasetFeatureStatisticsList

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_path` | Data statistics file path. The file should be a one-record TFRecord file or a plain file containing the statistics proto in Proto Text Format. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A DatasetFeatureStatisticsList proto. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `IOError` | If the input path does not exist. |

<br />