# tfdv.write_stats_text

<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#L186-L203) |

Writes a DatasetFeatureStatisticsList proto to a file in text format.

    tfdv.write_stats_text(
        stats: statistics_pb2.DatasetFeatureStatisticsList, output_path: Text
    ) -> None

<br />

<br />

<br />

| ## Args ||
|---|---|
| `stats` | A DatasetFeatureStatisticsList proto. |
| `output_path` | File path to write the DatasetFeatureStatisticsList proto. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the input proto is not of the expected type. |

<br />