data-validation

Validate ML datasets for schema integrity, drift, and quality with Pandera and Pydantic.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill data-validation-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-validation
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/data-prep/data-validation
Command: npx skills add https://github.com/hung-phan/ml-skills --skill data-validation-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandera, pydantic, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of data integrity and quality in machine learning pipelines, helping to prevent silent model failures due to schema drift, distribution shifts, and data corruption.

Core Features & Use Cases

  • Schema Enforcement: Enforce DataFrame schema constraints using Pandera and Pydantic.
  • Distribution Drift Detection: Monitor and detect shifts in feature distributions over time.
  • Data Quality Checks: Validate data against business rules and statistical thresholds.
  • Use Case: Before deploying a model, this Skill can be used to validate the training data, ensuring that the model is trained on high-quality data and that there are no unexpected data issues.

Quick Start

Run the data-validation skill to validate the 'train_data.csv' dataset against the defined schema and business rules.

Frequently Asked Questions about data-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate ML training data for schema integrity and distribution drift?

You validate ML training data for schema integrity and distribution drift by running statistical tests and schema enforcement checks using Pandera, Pydantic, and scipy to ensure datasets are suitable for training.

What is distribution drift detection in machine learning pipelines?

Distribution drift detection in machine learning pipelines is the process of monitoring and identifying statistical shifts in feature distributions over time to prevent silent model failures caused by data corruption.

How do I enforce DataFrame schema constraints using Pandera and Pydantic?

Enforce DataFrame schema constraints using Pandera and Pydantic by defining validation rules and business logic that check data types, statistical thresholds, and schema integrity before model training begins.

Can I use scipy statistical tests to check data quality before deploying an ML model?

Yes, you can use scipy statistical tests to check data quality before deploying an ML model by validating training data against defined business rules, statistical thresholds, and detecting feature distribution shifts.

Why does my machine learning model silently fail due to schema drift?

Machine learning models silently fail due to schema drift when training data undergoes unexpected structural changes or distribution shifts that go undetected without proper data validation checks at the start of ML pipelines.

What is the best way to prevent data corruption issues in ML pipelines?

The best way to prevent data corruption issues in ML pipelines is to implement automated data validation at the start using schema enforcement, statistical analysis, and distribution drift detection before model training.