2. Automated Dataset Profiling Script
This skill includes an automated profiling utility located in:
./scripts/profile_dataset.py
Run the profiling script against CSV, JSON, Parquet, or Excel files to extract:
- Column data types and schema inference.
- Missing/Null value counts and percentages.
- Unique value frequencies and cardinality.
- Numerical distributions (min, max, mean, quantiles, standard deviation).
- Anomaly, outlier, and quality warnings.
Usage:
python ./scripts/profile_dataset.py --input path/to/dataset.parquet --output data/DATASET_SUMMARY.md
3. Data Pipeline & Schema Validation
- Schema Contracts: Define explicit schema validation contracts using Pydantic, Marshmallow, or Great Expectations before ingestion.
- Analytical Storage: Store large analytical datasets in columnar Parquet or Arrow formats with snappy/zstd compression rather than uncompressed CSV/JSON.
- Idempotent Ingestion: Pipeline stages must be idempotent; re-running on the same input directory must overwrite or skip existing partitions cleanly without duplicating records.