tensorflow-data-validation
A library for exploring and validating machine learning data.
What it is and what it does
TensorFlow Data Validation is a library for exploring, profiling, and validating machine learning datasets at scale. It integrates with TensorFlow and TensorFlow Extended (TFX) to provide automated data quality checks before model training. The package computes summary statistics on training and test data, generates data schemas that describe expectations (required values, ranges, vocabularies), and detects anomalies such as missing features, out-of-range values, or incorrect types.
Under the hood, TFDV uses Apache Beam for distributed computation and Apache Arrow for vectorized in-memory data representation. It includes viewers for inspecting data distributions, comparing feature pairs, and examining detected anomalies. The package is designed for scalability and works well in both local and distributed environments (e.g., Google Cloud Dataflow).
Use it for:
- Generate baseline statistics and schemas from training data, then detect data drift or anomalies in production pipelines.
- Validate incoming datasets before feeding them into TensorFlow models to catch data quality issues early.
- Automatically infer feature schemas and data types from raw CSV or Arrow data to bootstrap data validation rules.
- Compare training and test data distributions to identify potential train-test skew or data quality problems.
- Build data quality gates in TFX pipelines to enforce schema compliance and flag unexpected feature patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
TensorFlow Data Validation (TFDV) computes summary statistics, detects anomalies, and generates data schemas for machine learning datasets at scale using Apache Beam and TensorFlow.
Yes, if you are building machine learning pipelines with TensorFlow or TFX and need automated data validation and schema management. The active maintenance, permissive license, and integration with the TFX ecosystem make it a solid choice. Medium install friction is acceptable given the value for data quality assurance in ML workflows.
Install
tensorflow-data-validation on PyPI
pip
pip install tensorflow-data-validationuv
uv add tensorflow-data-validationpoetry
poetry add tensorflow-data-validationInstalling tensorflow-data-validation
Before you install
Medium install friction due to 12 runtime dependencies including TensorFlow, Apache Beam, and PyArrow. Package is actively maintained with recent releases and prebuilt wheels for Python 3.10–3.13 on macOS and Linux.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install tensorflow-data-validation
import tensorflow_data_validation as tfdv
stats = tfdv.generate_statistics_from_csv('data.csv')
schema = tfdv.infer_schema(stats)
Requires TensorFlow, Apache Beam, and PyArrow; medium install friction on systems without prebuilt wheels or with missing system libraries.
Verify before relying
- Whether the package's distributed computation via Apache Beam is production-ready for datasets larger than memory on your infrastructure.
- Performance characteristics and scalability limits for real-world data volumes in your use case.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 12 — absl-py, apache-beam, joblib, numpy, pandas, protobuf, pyarrow, pyfarmhash, six, tensorflow, tensorflow-metadata, tfx-bsl |
| Maintenance | actively maintained — 64 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,668/month — #13,641 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflow_data_validation-1.21.0-cp310-cp310-macosx_11_0_arm64.whl; tensorflow_data_validation-1.21.0-cp310-cp310-manylinux_2_39_x86_64.whl; tensorflow_data_validation-1.21.0-cp311-cp311-macosx_11_0_arm64.whl; tensorflow_data_validation-1.21.0-cp311-cp311-manylinux_2_39_x86_64.whl; tensorflow_data_validation-1.21.0-cp312-cp312-macosx_11_0_arm64.whl; tensorflow_data_validation-1.21.0-cp312-cp312-manylinux_2_39_x86_64.whl; tensorflow_data_validation-1.21.0-cp313-cp313-macosx_11_0_arm64.whl; tensorflow_data_validation-1.21.0-cp313-cp313-manylinux_2_39_x86_64.whl
Keywords: tensorflow, data, validation, tfx
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tensorflow-metadataProvides standard schema, statistics, and…
permissive · top 5,000 on PyPI
tensorflow-transformTensorFlow Transform preprocesses data with…
permissive · top 15,000 on PyPI
tfx-bsltfx_bsl provides shared libraries and utilities…
permissive · top 15,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
tensorflow-ioExtends TensorFlow with support for file…
permissive · top 15,000 on PyPI
tensorboardTensorBoard is a web-based visualization suite…
permissive · top 1,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
tensorflow-probabilityTensorFlow Probability provides probabilistic…
permissive · top 5,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI