tfdv.GenerateStatistics

API for generating data statistics.

Example:

  with beam.Pipeline(runner=...) as p:
    _ = (p
         | 'ReadData' >> tfx_bsl.public.tfxio.TFExampleRecord(data_location)
             .BeamSource()
         | 'GenerateStatistics' >> GenerateStatistics()
         | 'WriteStatsOutput' >> tfdv.WriteStatisticsToTFRecord(output_path))

options tfdv.StatsOptions for generating data statistics.

TypeError If options is not of the expected type.

pipeline None