qmetrics.net

Pandera

Open-source statistical validation for dataframe pipelines

Pandera screenshot

Pandera is a Python library for validating dataframe-like data with expressive schemas. It targets scientists, engineers, and analysts who want runtime and test-time checks on tabular data.

Overview

Pandera provides a flexible API to define and enforce schemas on dataframe-like objects from several Python dataframe libraries. The goal is to make data processing pipelines more readable and robust through typed, validated data structures.

You can validate data with object-based or class-based schema APIs, attach checks to functions that produce dataframes, and parse unstructured inputs into typed columns. Schemas can describe column types, allowed values, ranges, and custom validation rules, with optional coercion.

The library supports multiple dataframe backends, including pandas, polars, and pyspark, installed via optional extras. It integrates with the Python ecosystem for unit testing, including property-based testing of transformation functions against input and output schemas.

You can bootstrap schemas by inferring structure from clean data and refine them over time. Documentation covers pipeline checkpoints, custom checks, and generating test data to validate functions that produce datasets.

Key features

  • Schema models for dataframe columns
  • Runtime validation decorators
  • Multi-backend dataframe support
  • Custom and built-in field checks
  • Schema inference from sample data
  • Lazy validation reporting
  • Hypothesis-friendly test strategies
  • Parse and validate unstructured fields

Use cases

  • Validate pandas pipelines at runtime
  • Test data transformation functions in CI
  • Define contracts for ML input data
  • Catch bad database extracts early
  • Document expected dataframe shapes

Tags

Similar software

pandas

Python data structures for labeled analysis

pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.

  • Series and DataFrame structures
  • Missing data handling
  • Group-by aggregation and transforms
PythonDetails →
★ 50.8k⟳ todayBSD-3-Clause

Polars

Rust analytical query engine for DataFrames

Polars is a DataFrame and SQL query engine written in Rust, exposed to Python, R, Node.js, and Rust. It emphasizes parallel, vectorized execution with lazy optimization and out-of-core streaming.

  • Lazy DataFrame query optimizer
  • SQL and expression APIs combined
  • Multi-threaded vectorized execution
RustDetails →
★ 40.7k⟳ todayMIT

Luigi

Python workflow manager for complex batch job pipelines

Luigi is a Python package for chaining batch jobs with dependency resolution, failure handling, and workflow visualization. It targets long-running data processing such as Hadoop work.

  • Dependency resolution between batch tasks
  • Workflow and failure management
  • Web task search and visualizer
PythonWeb, CLIDetails →
★ 18.8k⟳ yesterdayApache-2.0

Unstructured

Document ingestion and preprocessing for LLM pipelines

Unstructured is a Python library for parsing images and documents into structured elements. It targets PDFs, Office files, HTML, and more for LLM ingestion workflows.

  • Auto-detecting partition function
  • PDF, Office, HTML, and image support
  • Optional format-specific extras
HTMLLinux, macOS, DockerDetails →
★ 15.8k⟳ todayApache-2.0

cuDF

GPU-accelerated DataFrame library for tabular data

NVIDIA cuDF processes tabular data on GPUs with pandas-like Python APIs. It includes libcudf, optional pandas and Polars acceleration paths, and fits the RAPIDS CUDA-X stack.

  • pandas-like Python DataFrame API
  • libcudf Arrow columnar core
  • cudf.pandas zero-change acceleration
C++Details →
★ 9.8k⟳ todayApache-2.0

dlt

Python library for loading data into datasets

dlt is a Python library that extracts data from APIs, SQL, files, and Python iterables, infers schemas, and loads typed datasets into dozens of destinations.

  • REST, SQL, and file extractors
  • Schema inference and evolution
  • Incremental and merge decorators
PythonDetails →
★ 6.2k⟳ yesterdayApache-2.0