TensorFlow Data Validation (TFDV) is a library for exploring and validating machine learning data. It computes descriptive statistics, infers a schema, detects anomalies, and supports data drift/skew detection. Current version is 1.17.0 (requires Python 3.9+), with releases following TensorFlow's cadence.
pip install tensorflow-data-validationVerified import paths — ran on the pinned version, not inferred.
Compute statistics from a DataFrame, infer schema, and validate new data.
Use `generate_statistics_from_csv` or `generate_statistics_from_dataframe` instead of `generate_statistics`.
Use `from tensorflow_data_validation.utils.display_util import display_stats`.
Install apache-beam (`pip install apache-beam`) and use `generate_statistics_from_csv` with `beam_pipeline_args`.
Consider using `tfdv.update_schema_with_stats` to relax schema constraints based on full statistics.