# tfdv.WriteStatisticsToTFRecord

<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/api/stats_api.py#L134-L155) |

API for writing serialized data statistics to TFRecord file.

    tfdv.WriteStatisticsToTFRecord(
        output_path: Text, sharded_output=False
    ) -> None

<br />

<br />

<br />

| ## Args ||
|---|---|
| `output_path` | The output path or path prefix (if sharded_output=True). |
| `sharded_output` | If true, writes sharded TFRecords files in the form output_path-SSSSS-of-NNNNN. |

<br />

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| pipeline | `None` |

<br />